From 7d2cb654f0d64728741b5de733e572c44c8a5b04 Mon Sep 17 00:00:00 2001 From: Xuan Yang Date: Tue, 12 Aug 2025 10:23:48 -0700 Subject: [PATCH] chore: add the missing license header for some sample agents' files PiperOrigin-RevId: 794165986 --- contributing/samples/core_custom_agent/__init__.py | 13 +++++++++++++ .../samples/core_custom_agent/my_agents.py | 14 ++++++++++++++ contributing/samples/sub_agents/__init__.py | 13 +++++++++++++ contributing/samples/sub_agents/life_agent.py | 14 ++++++++++++++ contributing/samples/tool_functions/__init__.py | 13 +++++++++++++ contributing/samples/tool_functions/tools.py | 14 ++++++++++++++ .../samples/tool_human_in_the_loop/__init__.py | 13 +++++++++++++ .../samples/tool_human_in_the_loop/tools.py | 14 ++++++++++++++ 8 files changed, 108 insertions(+) diff --git a/contributing/samples/core_custom_agent/__init__.py b/contributing/samples/core_custom_agent/__init__.py index e69de29b..0a2669d7 100644 --- a/contributing/samples/core_custom_agent/__init__.py +++ b/contributing/samples/core_custom_agent/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/contributing/samples/core_custom_agent/my_agents.py b/contributing/samples/core_custom_agent/my_agents.py index 6dfa07e1..a002f362 100644 --- a/contributing/samples/core_custom_agent/my_agents.py +++ b/contributing/samples/core_custom_agent/my_agents.py @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from keyword import kwlist diff --git a/contributing/samples/sub_agents/__init__.py b/contributing/samples/sub_agents/__init__.py index e69de29b..0a2669d7 100644 --- a/contributing/samples/sub_agents/__init__.py +++ b/contributing/samples/sub_agents/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/contributing/samples/sub_agents/life_agent.py b/contributing/samples/sub_agents/life_agent.py index a1a1178d..8c7bbb1b 100644 --- a/contributing/samples/sub_agents/life_agent.py +++ b/contributing/samples/sub_agents/life_agent.py @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from google.adk.agents import LlmAgent agent = LlmAgent( diff --git a/contributing/samples/tool_functions/__init__.py b/contributing/samples/tool_functions/__init__.py index e69de29b..0a2669d7 100644 --- a/contributing/samples/tool_functions/__init__.py +++ b/contributing/samples/tool_functions/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/contributing/samples/tool_functions/tools.py b/contributing/samples/tool_functions/tools.py index a87befff..410a96e3 100644 --- a/contributing/samples/tool_functions/tools.py +++ b/contributing/samples/tool_functions/tools.py @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import random from google.adk.tools.tool_context import ToolContext diff --git a/contributing/samples/tool_human_in_the_loop/__init__.py b/contributing/samples/tool_human_in_the_loop/__init__.py index e69de29b..0a2669d7 100644 --- a/contributing/samples/tool_human_in_the_loop/__init__.py +++ b/contributing/samples/tool_human_in_the_loop/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/contributing/samples/tool_human_in_the_loop/tools.py b/contributing/samples/tool_human_in_the_loop/tools.py index fe5d9e19..9ad472a4 100644 --- a/contributing/samples/tool_human_in_the_loop/tools.py +++ b/contributing/samples/tool_human_in_the_loop/tools.py @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from typing import Any from google.adk.tools.tool_context import ToolContext