diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index f48c5eb14f..7035afed37 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -7,34 +7,69 @@ assignees: '' --- -** Please make sure you read the contribution guide and file the issues in the right place. ** -[Contribution guide.](https://google.github.io/adk-docs/contributing-guide/) +## 🔴 Required Information +*Please ensure all items in this section are completed to allow for efficient +triaging. Requests without complete information may be rejected / deprioritized. +If an item is not applicable to you - please mark it as N/A* -**Describe the bug** +**Describe the Bug:** A clear and concise description of what the bug is. -**To Reproduce** -Please share a minimal code and data to reproduce your problem. -Steps to reproduce the behavior: +**Steps to Reproduce:** +Please provide a numbered list of steps to reproduce the behavior: 1. Install '...' 2. Run '....' 3. Open '....' 4. Provide error or stacktrace -**Expected behavior** +**Expected Behavior:** A clear and concise description of what you expected to happen. -**Screenshots** -If applicable, add screenshots to help explain your problem. +**Observed Behavior:** +What actually happened? Include error messages or crash stack traces here. -**Desktop (please complete the following information):** - - OS: [e.g. macOS, Linux, Windows] - - Python version(python -V): - - ADK version(pip show google-adk): +**Environment Details:** + + - ADK Library Version (pip show google-adk): + - Desktop OS:** [e.g., macOS, Linux, Windows] + - Python Version (python -V): + +**Model Information:** - **Model Information:** - Are you using LiteLLM: Yes/No - - Which model is being used(e.g. gemini-2.5-pro) + - Which model is being used: (e.g., gemini-2.5-pro) + +--- + +## 🟡 Optional Information +*Providing this information greatly speeds up the resolution process.* + +**Regression:** +Did this work in a previous version of ADK? If so, which one? -**Additional context** +**Logs:** +Please attach relevant logs. Wrap them in code blocks (```) or attach a +text file. +```text +// Paste logs here +``` + +**Screenshots / Video:** +If applicable, add screenshots or screen recordings to help explain +your problem. + +**Additional Context:** Add any other context about the problem here. + +**Minimal Reproduction Code:** +Please provide a code snippet or a link to a Gist/repo that isolates the issue. +```python +// Code snippet here +``` + +**How often has this issue occurred?:** + + - Always (100%) + - Often (50%+) + - Intermittently (<50%) + - Once / Rare diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 2db631851a..ddc6ceae86 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -10,14 +10,39 @@ assignees: '' ** Please make sure you read the contribution guide and file the issues in the right place. ** [Contribution guide.](https://google.github.io/adk-docs/contributing-guide/) -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] +## 🔴 Required Information +*Please ensure all items in this section are completed to allow for efficient +triaging. Requests without complete information may be rejected / deprioritized. +If an item is not applicable to you - please mark it as N/A* -**Describe the solution you'd like** -A clear and concise description of what you want to happen. +### Is your feature request related to a specific problem? +Please describe the problem you are trying to solve. (Ex: "I'm always frustrated +when I have to manually handle X...") -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. +### Describe the Solution You'd Like +A clear and concise description of the feature or API change you want. +Be specific about input/outputs if this involves an API change. -**Additional context** -Add any other context or screenshots about the feature request here. +### Impact on your work +How does this feature impact your work and what are you trying to achieve? +If this is critical for you, tell us if there is a timeline by when you need +this feature. + +### Willingness to contribute +Are you interested in implementing this feature yourself or submitting a PR? +(Yes/No) + +--- + +## 🟡 Recommended Information + +### Describe Alternatives You've Considered +A clear and concise description of any alternative solutions or workarounds +you've considered and why they didn't work for you. + +### Proposed API / Implementation +If you have ideas on how this should look in code, please share a +pseudo-code example. + +### Additional Context +Add any other context or screenshots about the feature request here. \ No newline at end of file diff --git a/.github/workflows/check-file-contents.yml b/.github/workflows/check-file-contents.yml index 6c02d904c7..7670733e97 100644 --- a/.github/workflows/check-file-contents.yml +++ b/.github/workflows/check-file-contents.yml @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -96,7 +96,7 @@ jobs: echo "" set +e - FILES_WITH_FORBIDDEN_IMPORT=$(grep -lE '^from.*cli.*import.*$' $CHANGED_FILES) + FILES_WITH_FORBIDDEN_IMPORT=$(grep -lE '^from.*\bcli\b.*import.*$' $CHANGED_FILES) GREP_EXIT_CODE=$? set -e diff --git a/.github/workflows/isort.yml b/.github/workflows/isort.yml index a1967b1f53..7a4a81bfd5 100644 --- a/.github/workflows/isort.yml +++ b/.github/workflows/isort.yml @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.github/workflows/pyink.yml b/.github/workflows/pyink.yml index bcd872bda8..4dd9073fc7 100644 --- a/.github/workflows/pyink.yml +++ b/.github/workflows/pyink.yml @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.github/workflows/python-unit-tests.yml b/.github/workflows/python-unit-tests.yml index a19e893469..abbe5c0d06 100644 --- a/.github/workflows/python-unit-tests.yml +++ b/.github/workflows/python-unit-tests.yml @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.github/workflows/stale-bot.yml b/.github/workflows/stale-bot.yml index 1e539c7ff6..b6c897b61f 100644 --- a/.github/workflows/stale-bot.yml +++ b/.github/workflows/stale-bot.yml @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/AGENTS.md b/AGENTS.md index 95ea8ff263..1ec9dcb857 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -24,7 +24,7 @@ agentic architectures that range from simple tasks to complex workflows. interacts with various services like session management, artifact storage, and memory, and integrates with application-wide plugins. The runner provides different execution modes: `run_async` for asynchronous execution - in production, `run_live` for bi-directional streaming interaction, and + in production, `run_live` for bidirectional streaming interaction, and `run` for synchronous execution suitable for local testing and debugging. At the end of each invocation, it can perform event compaction to manage session history size. @@ -316,7 +316,7 @@ navigation and refactoring. immediately after the license header, before any other imports. ```python -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/CHANGELOG.md b/CHANGELOG.md index fada470bb0..be8b70ac9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,88 @@ # Changelog +## [1.23.0](https://github.com/google/adk-python/compare/v1.22.1...v1.23.0) (2026-01-22) + +### ⚠ BREAKING CHANGES + +* Breaking: Use OpenTelemetry for BigQuery plugin tracing, replacing custom `ContextVar` implementation ([ab89d12](https://github.com/google/adk-python/commit/ab89d1283430041afb303834749869e9ee331721)) + +### Features + +* **[Core]** + * Add support to automatically create a session if one does not exist ([8e69a58](https://github.com/google/adk-python/commit/8e69a58df4eadeccbb100b7264bb518a46b61fd7)) + * Remove `@experimental` decorator from `AgentEngineSandboxCodeExecutor` ([135f763](https://github.com/google/adk-python/commit/135f7633253f6a415302142abc3579b664601d5b)) + * Add `--disable_features` CLI option to override default feature enable state ([53b67ce](https://github.com/google/adk-python/commit/53b67ce6340f3f3f8c3d732f9f7811e445c76359)) + * Add `otel_to_cloud` flag to `adk deploy agent_engine` command ([21f63f6](https://github.com/google/adk-python/commit/21f63f66ee424501d9a70806277463ef718ae843)) + * Add `is_computer_use` field to agent information in `adk-web` server ([5923da7](https://github.com/google/adk-python/commit/5923da786eb1aaef6f0bcbc6adc906cbc8bf9b36)) + * Allow `thinking_config` in `generate_content_config` ([e162bb8](https://github.com/google/adk-python/commit/e162bb8832a806e2380048e39165bf837455f88c)) + * Convert A2UI messages between A2A `DataPart` metadata and ADK events ([1133ce2](https://github.com/google/adk-python/commit/1133ce219c5a7a9a85222b03e348ba6b13830c8f)) + * Add `--enable_features` CLI option to override default feature enable state ([79fcddb](https://github.com/google/adk-python/commit/79fcddb39f71a4c1342e63b4d67832b3eccb2652)) + +* **[Tools]** + * Add flush mechanism to `BigQueryAgentAnalyticsPlugin` to ensure pending log events are written to BigQuery ([9579bea](https://github.com/google/adk-python/commit/9579bea05d946b3d8b4bfec35e510725dd371224)) + * Allow Google Search tool to set a different model ([b57a3d4](https://github.com/google/adk-python/commit/b57a3d43e4656f5a3c5db53addff02b67d1fde26)) + * Support authentication for MCP tool listing ([e3d542a](https://github.com/google/adk-python/commit/e3d542a5ba3d357407f8cd29cfdd722f583c8564) [19315fe](https://github.com/google/adk-python/commit/19315fe557039fa8bf446525a4830b1c9f40cba9)) + * Use JSON schema for `base_retrieval_tool`, `load_artifacts_tool`, and `load_memory_tool` declarations when the feature is enabled ([69ad605](https://github.com/google/adk-python/commit/69ad605bc4bbe9a4f018127fd3625169ee70488e)) + * Use JSON schema for `IntegrationConnectorTool` declaration when the feature is enabled ([2ed6865](https://github.com/google/adk-python/commit/2ed686527ac75ff64128ce7d9b1a3befc2b37c64)) + * Start and close `ClientSession` in a single task in `McpSessionManager` ([cce430d](https://github.com/google/adk-python/commit/cce430da799766686e65f6cae02ba64e916d5c8a)) + * Use JSON schema for `RestApiTool` declaration when the feature is enabled ([a5f0d33](https://github.com/google/adk-python/commit/a5f0d333d7f26f2966ed511d5d9def7a1933f0c2)) + +* **[Evals]** + * Update `adk eval` CLI to consume custom metrics by adding `CustomMetricEvaluator` ([ea0934b](https://github.com/google/adk-python/commit/ea0934b9934c1fefd129a1026d6af369f126870e)) + * Update `EvalConfig` and `EvalMetric` data models to support custom metrics ([6d2f33a](https://github.com/google/adk-python/commit/6d2f33a59cfba358dd758378290125fc2701c411)) + +* **[Observability]** + * Add minimal `generate_content {model.name}` spans and logs for non-Gemini inference and when `opentelemetry-inference-google-genai` dependency is missing ([935c279](https://github.com/google/adk-python/commit/935c279f8281bde99224f03d936b8abe51cbabfc)) + +* **[Integrations]** + * Enhance `TraceManager` asynchronous safety, enrich BigQuery plugin logging, and fix serialization ([a4116a6](https://github.com/google/adk-python/commit/a4116a6cbfadc161982af5dabd55a711d79348b7)) + +* **[Live]** + * Persist user input content to session in live mode ([a04828d](https://github.com/google/adk-python/commit/a04828dd8a848482acbd48acc7da432d0d2cb0aa)) + +### Bug Fixes + +* Recursively extract input/output schema for AgentTool ([bf2b56d](https://github.com/google/adk-python/commit/bf2b56de6d0052e40b6d871b2d22c56e9225e145)) +* Yield buffered `function_call` and `function_response` events during live streaming ([7b25b8f](https://github.com/google/adk-python/commit/7b25b8fb1daf54d7694bf405d545d46d2c012d2b)) +* Update `authlib` and `mcp` dependency versions ([7955177](https://github.com/google/adk-python/commit/7955177fb28b8e5dc19aae8be94015a7b5d9882a)) +* Set `LITELLM_MODE` to `PRODUCTION` before importing LiteLLM to prevent implicit `.env` file loading ([215c2f5](https://github.com/google/adk-python/commit/215c2f506e21a3d8c39551b80f6356943ecae320)) +* Redact sensitive information from URIs in logs ([5257869](https://github.com/google/adk-python/commit/5257869d91a77ebd1381538a85e7fdc3a600da90)) +* Handle asynchronous driver URLs in the migration tool ([4b29d15](https://github.com/google/adk-python/commit/4b29d15b3e5df65f3503daffa6bc7af85159507b)) +* Remove custom metadata from A2A response events ([81eaeb5](https://github.com/google/adk-python/commit/81eaeb5eba6d40cde0cf6147d96921ed1bf7bb31)) +* Handle `None` inferences in eval results ([7d4326c](https://github.com/google/adk-python/commit/7d4326c3606a7ff2ba3c0fdef08d4f6af52ee71e)) +* Mark all parts of a thought event as thought ([f92d4e3](https://github.com/google/adk-python/commit/f92d4e397f37445fe9032a95ce26646a3a69300b)) +* Use `json.dumps` for error messages in SSE events ([6ad18cc](https://github.com/google/adk-python/commit/6ad18cc2fc3a3315a0fc240cb51b3283b53116b4)) +* Use the correct path for config-based agents when deploying to AgentEngine ([83d7bb6](https://github.com/google/adk-python/commit/83d7bb6ef0d952ad04c5d9a61aaf202672c7e17d)) +* Support Generator and Async Generator tool declarations in JSON schema ([19555e7](https://github.com/google/adk-python/commit/19555e7dce6d60c3b960ca0bc2f928c138ac3cc0) [7c28297](https://github.com/google/adk-python/commit/7c282973ea193841fee79f90b8a91c5e02627ccc)) +* Prevent stopping event processing on events with `None` content ([ed2c3eb](https://github.com/google/adk-python/commit/ed2c3ebde9cafbb5e2bf375f44db1e77cee9fb24)) +* Fix `'NoneType'` object is not iterable error ([7db3ce9](https://github.com/google/adk-python/commit/7db3ce9613b1c2c97e6ca3cd8115736516dc1556)) +* Use canonical tools to find streaming tools and register them by `tool.name` ([ec6abf4](https://github.com/google/adk-python/commit/ec6abf401019c39e8e1a8d1b2c7d5cf5e8c7ac56)) +* Initialize `self._auth_config` inside `BaseAuthenticatedTool` to access authentication headers in `McpTool` ([d4da1bb](https://github.com/google/adk-python/commit/d4da1bb7330cdb87c1dcbe0b9023148357a6bd07)) +* Only filter out audio content when sending history ([712b5a3](https://github.com/google/adk-python/commit/712b5a393d44e7b5ce35fc459da98361bae4bb16)) +* Add finish reason mapping and remove custom file URI handling in LiteLLM ([89bed43](https://github.com/google/adk-python/commit/89bed43f5e0c5ad12dd31c716d372145b7e33e78)) +* Convert unsupported inline artifact MIME types to text in `LoadArtifactsTool` ([fdc98d5](https://github.com/google/adk-python/commit/fdc98d5c927bfef021e87cf72103892e4c2ac12a)) +* Pass `log_level` to `uvicorn` in `web` and `api_server` commands ([38d52b2](https://github.com/google/adk-python/commit/38d52b247600fb45a2beeb041c4698e90c00d705)) +* Use the agent name as the author of the audio event ([ab62b1b](https://github.com/google/adk-python/commit/ab62b1bffd7ad2df5809d430ad1823872b8bd67a)) +* Handle `NOT_FOUND` error when fetching Vertex AI sessions ([75231a3](https://github.com/google/adk-python/commit/75231a30f1857d930804769caf88bcc20839dd08)) +* Fix `httpx` client closure during event pagination ([b725045](https://github.com/google/adk-python/commit/b725045e5a1192bc9fd5190cbd2758ab6ff02590)) + +### Improvements + +* Add new conversational analytics API toolset ([82fa10b](https://github.com/google/adk-python/commit/82fa10b71e037b565cb407c82e9e908432dab0ff)) +* Filter out `adk_request_input` event from content list ([295b345](https://github.com/google/adk-python/commit/295b34558774d1f64022009980e3edd8eb79527b)) +* Always skip executing partial function calls ([d62f9c8](https://github.com/google/adk-python/commit/d62f9c896c301aba3a781e868735e16f946a8862)) +* Update comments of request confirmation preprocessor ([1699b09](https://github.com/google/adk-python/commit/1699b090edc9e5b13c34f461c8e664187157c5c0)) +* Fix various typos ([a8f2ddd](https://github.com/google/adk-python/commit/a8f2ddd943301bbf53f49b3a23300ece45803cc0)) +* Update sample live streaming tools agent to use latest live models ([3dd7e3f](https://github.com/google/adk-python/commit/3dd7e3f1b9be05c28adb061864d84c4202a2d922)) +* Make the regex to catch CLI reference strict by adding word boundary anchor ([c222a45](https://github.com/google/adk-python/commit/c222a45ef74f7b55c48dc151ba98cd8c30a15c57)) +* Migrate `ToolboxToolset` to use `toolbox-adk` and align validation ([7dc6adf](https://github.com/google/adk-python/commit/7dc6adf4e563330a09e4cf28d2b1994c24b007d1) [277084e](https://github.com/google/adk-python/commit/277084e31368302e6338b69d456affd35d5fedfe)) +* Always log API backend when connecting to live model ([7b035aa](https://github.com/google/adk-python/commit/7b035aa9fc43a43489aeffea8f877cd7eaa09f35)) +* Add a sample BigQuery agent using BigQuery MCP tools ([672b57f](https://github.com/google/adk-python/commit/672b57f1b76580023d1f348de76227291a9c1012)) +* Add a `DebugLoggingPlugin` to record human-readable debugging logs ([8973618](https://github.com/google/adk-python/commit/8973618b0b0e90c513873e22af272c147efb4904)) +* Upgrade the sample BigQuery agent model version to `gemini-2.5-flash` ([fd2c0f5](https://github.com/google/adk-python/commit/fd2c0f556b786417a9f6add744827b07e7a06b7d)) +* Import `migration_runner` lazily within the migrate command ([905604f](https://github.com/google/adk-python/commit/905604faac82aca8ae0935eebea288f82985e9c5)) + + ## [1.22.1](https://github.com/google/adk-python/compare/v1.22.0...v1.22.1) (2026-01-09) @@ -531,7 +614,7 @@ * Set `max_output_tokens` for the agent builder ([2e2d61b](https://github.com/google/adk-python/commit/2e2d61b6fecb90cd474d6f51255678ff74b67a9b)) * Set default response modality to AUDIO in run_session ([68402bd](https://github.com/google/adk-python/commit/68402bda49083f2d56f8e8488fe13aa58b3bc18c)) * Update remote_a2a_agent to better handle streaming events and avoid duplicate responses ([8e5f361](https://github.com/google/adk-python/commit/8e5f36126498f751171bb2639c7f5a9e7dca2558)) -* Update the load_artifacts tool so that the model can reliably call it for follow up questions about the same artifact ([238472d](https://github.com/google/adk-python/commit/238472d083b5aa67551bde733fc47826ff062679)) +* Update the load_artifacts tool so that the model can reliably call it for follow-up questions about the same artifact ([238472d](https://github.com/google/adk-python/commit/238472d083b5aa67551bde733fc47826ff062679)) * Fix VertexAiSessionService base_url override to preserve initialized http_options ([8110e41](https://github.com/google/adk-python/commit/8110e41b36cceddb8b92ba17cffaacf701706b36), [c51ea0b](https://github.com/google/adk-python/commit/c51ea0b52e63de8e43d3dccb24f9d20987784aa5)) * Handle `App` instances returned by `agent_loader.load_agent` ([847df16](https://github.com/google/adk-python/commit/847df1638cbf1686aa43e8e094121d4e23e40245)) @@ -698,7 +781,7 @@ * AgentTool returns last content, instead of the content in the last event [bcf0dda](https://github.com/google/adk-python/commit/bcf0dda8bcc221974098f3077007c9e84c63021a) * Fix adk deploy docker file permission [ad81aa5](https://github.com/google/adk-python/commit/ad81aa54de1f38df580915b7f47834ea8e5f1004) * Updating BaseAgent.clone() and LlmAgent.clone() to properly clone fields that are lists [29bb75f](https://github.com/google/adk-python/commit/29bb75f975fe0c9c9d9a7e534a9c20158e1cbe1e) -* Make tool description for bigquery `execute_sql` for various write modes self contained [167182b](https://github.com/google/adk-python/commit/167182be0163117f814c70f453d5b2e19bf474df) +* Make tool description for bigquery `execute_sql` for various write modes self-contained [167182b](https://github.com/google/adk-python/commit/167182be0163117f814c70f453d5b2e19bf474df) * Set invocation_id and branch for event generated when both output_schema and tools are used [3f3aa7b](https://github.com/google/adk-python/commit/3f3aa7b32d63cae5750d71bc586c088427c979ea) * Rework parallel_agent.py to always aclose async generators [826f554](https://github.com/google/adk-python/commit/826f5547890dc02e707be33a3d6a58b527dac223) * Add table metadata info into Spanner tool `get_table_schema` and fix the key usage info [81a53b5](https://github.com/google/adk-python/commit/81a53b53d6336011187a50ae8f1544de9b2764a8) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c620c8ab96..70dab5625f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -188,6 +188,18 @@ part before or alongside your code PR. pytest ./tests/unittests ``` + **Alternatively**, use the included `unittests.sh` script which handles + environment setup and restoration automatically: + + ```shell + ./scripts/unittests.sh + ``` + + This script will: + - Set up the test environment with minimal dependencies (`test`, `eval`, `a2a`) + - Run the unit tests + - Restore the full development environment (`--all-extras`) + 6. **Auto-format the code:** **NOTE**: We use `isort` and `pyink` for styles. Use the included diff --git a/autoformat.sh b/autoformat.sh index d1c832b864..3a2dc8c388 100755 --- a/autoformat.sh +++ b/autoformat.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/a2a_auth/__init__.py b/contributing/samples/a2a_auth/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/a2a_auth/__init__.py +++ b/contributing/samples/a2a_auth/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/a2a_auth/agent.py b/contributing/samples/a2a_auth/agent.py index a4c65624d2..6d07ae6ab3 100644 --- a/contributing/samples/a2a_auth/agent.py +++ b/contributing/samples/a2a_auth/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/a2a_auth/remote_a2a/bigquery_agent/__init__.py b/contributing/samples/a2a_auth/remote_a2a/bigquery_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/a2a_auth/remote_a2a/bigquery_agent/__init__.py +++ b/contributing/samples/a2a_auth/remote_a2a/bigquery_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/a2a_auth/remote_a2a/bigquery_agent/agent.py b/contributing/samples/a2a_auth/remote_a2a/bigquery_agent/agent.py index 05517cd86e..0d8992ad34 100644 --- a/contributing/samples/a2a_auth/remote_a2a/bigquery_agent/agent.py +++ b/contributing/samples/a2a_auth/remote_a2a/bigquery_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/a2a_basic/__init__.py b/contributing/samples/a2a_basic/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/a2a_basic/__init__.py +++ b/contributing/samples/a2a_basic/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/a2a_basic/agent.py b/contributing/samples/a2a_basic/agent.py index 49e542d1de..d79a1c256e 100755 --- a/contributing/samples/a2a_basic/agent.py +++ b/contributing/samples/a2a_basic/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/a2a_basic/remote_a2a/check_prime_agent/__init__.py b/contributing/samples/a2a_basic/remote_a2a/check_prime_agent/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/a2a_basic/remote_a2a/check_prime_agent/__init__.py +++ b/contributing/samples/a2a_basic/remote_a2a/check_prime_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/a2a_basic/remote_a2a/check_prime_agent/agent.py b/contributing/samples/a2a_basic/remote_a2a/check_prime_agent/agent.py index 1a7cd5565f..64ae534e63 100755 --- a/contributing/samples/a2a_basic/remote_a2a/check_prime_agent/agent.py +++ b/contributing/samples/a2a_basic/remote_a2a/check_prime_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/a2a_human_in_loop/__init__.py b/contributing/samples/a2a_human_in_loop/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/a2a_human_in_loop/__init__.py +++ b/contributing/samples/a2a_human_in_loop/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/a2a_human_in_loop/agent.py b/contributing/samples/a2a_human_in_loop/agent.py index a1f7d91231..30d493ef0d 100644 --- a/contributing/samples/a2a_human_in_loop/agent.py +++ b/contributing/samples/a2a_human_in_loop/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/a2a_human_in_loop/remote_a2a/human_in_loop/__init__.py b/contributing/samples/a2a_human_in_loop/remote_a2a/human_in_loop/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/a2a_human_in_loop/remote_a2a/human_in_loop/__init__.py +++ b/contributing/samples/a2a_human_in_loop/remote_a2a/human_in_loop/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/a2a_human_in_loop/remote_a2a/human_in_loop/agent.py b/contributing/samples/a2a_human_in_loop/remote_a2a/human_in_loop/agent.py index 9a71fb184e..08a7f255ed 100644 --- a/contributing/samples/a2a_human_in_loop/remote_a2a/human_in_loop/agent.py +++ b/contributing/samples/a2a_human_in_loop/remote_a2a/human_in_loop/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/a2a_root/agent.py b/contributing/samples/a2a_root/agent.py index c913a6fad8..b52b778c0b 100755 --- a/contributing/samples/a2a_root/agent.py +++ b/contributing/samples/a2a_root/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/a2a_root/remote_a2a/hello_world/__init__.py b/contributing/samples/a2a_root/remote_a2a/hello_world/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/a2a_root/remote_a2a/hello_world/__init__.py +++ b/contributing/samples/a2a_root/remote_a2a/hello_world/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/a2a_root/remote_a2a/hello_world/agent.py b/contributing/samples/a2a_root/remote_a2a/hello_world/agent.py index f1cb8a33ef..6261f4d486 100755 --- a/contributing/samples/a2a_root/remote_a2a/hello_world/agent.py +++ b/contributing/samples/a2a_root/remote_a2a/hello_world/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_answering_agent/__init__.py b/contributing/samples/adk_answering_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/adk_answering_agent/__init__.py +++ b/contributing/samples/adk_answering_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_answering_agent/agent.py b/contributing/samples/adk_answering_agent/agent.py index 69513bace3..ff82e5029a 100644 --- a/contributing/samples/adk_answering_agent/agent.py +++ b/contributing/samples/adk_answering_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_answering_agent/gemini_assistant/__init__.py b/contributing/samples/adk_answering_agent/gemini_assistant/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/adk_answering_agent/gemini_assistant/__init__.py +++ b/contributing/samples/adk_answering_agent/gemini_assistant/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_answering_agent/gemini_assistant/agent.py b/contributing/samples/adk_answering_agent/gemini_assistant/agent.py index e8c22e29f3..812a78174f 100644 --- a/contributing/samples/adk_answering_agent/gemini_assistant/agent.py +++ b/contributing/samples/adk_answering_agent/gemini_assistant/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_answering_agent/main.py b/contributing/samples/adk_answering_agent/main.py index ffb251f540..0c06fce8b9 100644 --- a/contributing/samples/adk_answering_agent/main.py +++ b/contributing/samples/adk_answering_agent/main.py @@ -1,6 +1,6 @@ """ADK Answering Agent main script.""" -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_answering_agent/settings.py b/contributing/samples/adk_answering_agent/settings.py index 5ca57481b2..e7b1f8275e 100644 --- a/contributing/samples/adk_answering_agent/settings.py +++ b/contributing/samples/adk_answering_agent/settings.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_answering_agent/tools.py b/contributing/samples/adk_answering_agent/tools.py index cb20b29cc0..b817e6f036 100644 --- a/contributing/samples/adk_answering_agent/tools.py +++ b/contributing/samples/adk_answering_agent/tools.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_answering_agent/upload_docs_to_vertex_ai_search.py b/contributing/samples/adk_answering_agent/upload_docs_to_vertex_ai_search.py index 96fe6adf0a..fcf312753e 100644 --- a/contributing/samples/adk_answering_agent/upload_docs_to_vertex_ai_search.py +++ b/contributing/samples/adk_answering_agent/upload_docs_to_vertex_ai_search.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_answering_agent/utils.py b/contributing/samples/adk_answering_agent/utils.py index dafebed272..71eb18c554 100644 --- a/contributing/samples/adk_answering_agent/utils.py +++ b/contributing/samples/adk_answering_agent/utils.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_documentation/__init__.py b/contributing/samples/adk_documentation/__init__.py index 0a2669d7a2..58d482ea38 100644 --- a/contributing/samples/adk_documentation/__init__.py +++ b/contributing/samples/adk_documentation/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_documentation/adk_docs_updater/__init__.py b/contributing/samples/adk_documentation/adk_docs_updater/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/adk_documentation/adk_docs_updater/__init__.py +++ b/contributing/samples/adk_documentation/adk_docs_updater/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_documentation/adk_docs_updater/agent.py b/contributing/samples/adk_documentation/adk_docs_updater/agent.py index c54a5c27de..4b3cac0794 100644 --- a/contributing/samples/adk_documentation/adk_docs_updater/agent.py +++ b/contributing/samples/adk_documentation/adk_docs_updater/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_documentation/adk_docs_updater/main.py b/contributing/samples/adk_documentation/adk_docs_updater/main.py index 3c3839fb61..4fcdb6e659 100644 --- a/contributing/samples/adk_documentation/adk_docs_updater/main.py +++ b/contributing/samples/adk_documentation/adk_docs_updater/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_documentation/adk_release_analyzer/__init__.py b/contributing/samples/adk_documentation/adk_release_analyzer/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/adk_documentation/adk_release_analyzer/__init__.py +++ b/contributing/samples/adk_documentation/adk_release_analyzer/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_documentation/adk_release_analyzer/agent.py b/contributing/samples/adk_documentation/adk_release_analyzer/agent.py index ddad17d310..738506e9b9 100644 --- a/contributing/samples/adk_documentation/adk_release_analyzer/agent.py +++ b/contributing/samples/adk_documentation/adk_release_analyzer/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -272,6 +272,8 @@ def get_release_context(tool_context: ToolContext) -> dict[str, Any]: 3. Call `get_changed_files_summary` to get the list of changed files WITHOUT the full patches (to save context space). + - **IMPORTANT**: Pass `local_repo_path="{LOCAL_REPOS_DIR_PATH}/{CODE_REPO}"` + to use local git and avoid GitHub API's 300-file limit. 4. Filter and organize the files: - **INCLUDE** only files in `src/google/adk/` directory diff --git a/contributing/samples/adk_documentation/adk_release_analyzer/main.py b/contributing/samples/adk_documentation/adk_release_analyzer/main.py index 1d43302c84..bfad49e5e0 100644 --- a/contributing/samples/adk_documentation/adk_release_analyzer/main.py +++ b/contributing/samples/adk_documentation/adk_release_analyzer/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_documentation/settings.py b/contributing/samples/adk_documentation/settings.py index 247aa4c4c0..3ef47f1ce0 100644 --- a/contributing/samples/adk_documentation/settings.py +++ b/contributing/samples/adk_documentation/settings.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_documentation/tools.py b/contributing/samples/adk_documentation/tools.py index c6fd4c2f4d..f9a09b5453 100644 --- a/contributing/samples/adk_documentation/tools.py +++ b/contributing/samples/adk_documentation/tools.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -600,23 +600,37 @@ def get_file_diff_for_release( def get_changed_files_summary( - repo_owner: str, repo_name: str, start_tag: str, end_tag: str + repo_owner: str, + repo_name: str, + start_tag: str, + end_tag: str, + local_repo_path: Optional[str] = None, ) -> Dict[str, Any]: """Gets a summary of changed files between two releases without patches. - This is a lighter-weight version of get_changed_files_between_releases - that only returns file paths and metadata, without the actual diff content. - Use this for planning which files to analyze. + This function uses local git commands when local_repo_path is provided, + which avoids the GitHub API's 300-file limit for large comparisons. + Falls back to GitHub API if local_repo_path is not provided or invalid. Args: repo_owner: The name of the repository owner. repo_name: The name of the repository. start_tag: The older tag (base) for the comparison. end_tag: The newer tag (head) for the comparison. + local_repo_path: Optional absolute path to local git repo. If provided + and valid, uses git diff instead of GitHub API to get complete + file list (avoids 300-file limit). Returns: A dictionary containing the status and a summary of changed files. """ + # Use local git if valid path is provided (avoids GitHub API 300-file limit) + if local_repo_path and os.path.isdir(os.path.join(local_repo_path, ".git")): + return _get_changed_files_from_local_git( + local_repo_path, start_tag, end_tag, repo_owner, repo_name + ) + + # Fall back to GitHub API (limited to 300 files) url = f"{GITHUB_BASE_URL}/repos/{repo_owner}/{repo_name}/compare/{start_tag}...{end_tag}" try: @@ -654,8 +668,140 @@ def get_changed_files_summary( f"https://github.com/{repo_owner}/{repo_name}" f"/compare/{start_tag}...{end_tag}" ), + "note": ( + ( + "Using GitHub API which is limited to 300 files. " + "Provide local_repo_path to get complete file list." + ) + if len(formatted_files) >= 300 + else None + ), } except requests.exceptions.HTTPError as e: return error_response(f"HTTP Error: {e}") except requests.exceptions.RequestException as e: return error_response(f"Request Error: {e}") + + +def _get_changed_files_from_local_git( + local_repo_path: str, + start_tag: str, + end_tag: str, + repo_owner: str, + repo_name: str, +) -> Dict[str, Any]: + """Gets changed files using local git commands (no file limit). + + Args: + local_repo_path: Path to local git repository. + start_tag: The older tag (base) for the comparison. + end_tag: The newer tag (head) for the comparison. + repo_owner: Repository owner for compare URL. + repo_name: Repository name for compare URL. + + Returns: + A dictionary containing the status and a summary of changed files. + """ + try: + # Fetch tags to ensure we have them + subprocess.run( + ["git", "fetch", "--tags"], + cwd=local_repo_path, + capture_output=True, + text=True, + check=False, + ) + + # Get list of changed files with their status + diff_result = subprocess.run( + ["git", "diff", "--name-status", f"{start_tag}...{end_tag}"], + cwd=local_repo_path, + capture_output=True, + text=True, + check=True, + ) + + # Get numstat for additions/deletions + numstat_result = subprocess.run( + ["git", "diff", "--numstat", f"{start_tag}...{end_tag}"], + cwd=local_repo_path, + capture_output=True, + text=True, + check=True, + ) + + # Parse numstat output (additions, deletions, filename) + file_stats: Dict[str, Dict[str, int]] = {} + for line in numstat_result.stdout.strip().split("\n"): + if not line: + continue + parts = line.split("\t") + if len(parts) >= 3: + additions = int(parts[0]) if parts[0] != "-" else 0 + deletions = int(parts[1]) if parts[1] != "-" else 0 + filename = parts[2] + file_stats[filename] = { + "additions": additions, + "deletions": deletions, + "changes": additions + deletions, + } + + # Parse name-status output and combine with numstat + status_map = { + "A": "added", + "D": "removed", + "M": "modified", + "R": "renamed", + "C": "copied", + } + + files_by_dir: Dict[str, List[Dict[str, Any]]] = {} + formatted_files = [] + + for line in diff_result.stdout.strip().split("\n"): + if not line: + continue + parts = line.split("\t") + if len(parts) >= 2: + status_code = parts[0][0] # First char is the status + filename = parts[-1] # Last part is filename (handles renames) + + stats = file_stats.get( + filename, + { + "additions": 0, + "deletions": 0, + "changes": 0, + }, + ) + + file_info = { + "relative_path": filename, + "status": status_map.get(status_code, "modified"), + "additions": stats["additions"], + "deletions": stats["deletions"], + "changes": stats["changes"], + } + formatted_files.append(file_info) + + # Group by top-level directory + dir_parts = filename.split("/") + top_dir = dir_parts[0] if dir_parts else "root" + if top_dir not in files_by_dir: + files_by_dir[top_dir] = [] + files_by_dir[top_dir].append(file_info) + + return { + "status": "success", + "total_files": len(formatted_files), + "files": formatted_files, + "files_by_directory": files_by_dir, + "compare_url": ( + f"https://github.com/{repo_owner}/{repo_name}" + f"/compare/{start_tag}...{end_tag}" + ), + } + except subprocess.CalledProcessError as e: + return error_response(f"Git command failed: {e.stderr}") + except (OSError, ValueError) as e: + return error_response(f"Error getting changed files: {e}") diff --git a/contributing/samples/adk_documentation/utils.py b/contributing/samples/adk_documentation/utils.py index 1fd2efbf4a..89bfb66384 100644 --- a/contributing/samples/adk_documentation/utils.py +++ b/contributing/samples/adk_documentation/utils.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_issue_formatting_agent/__init__.py b/contributing/samples/adk_issue_formatting_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/adk_issue_formatting_agent/__init__.py +++ b/contributing/samples/adk_issue_formatting_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_issue_formatting_agent/agent.py b/contributing/samples/adk_issue_formatting_agent/agent.py index f2450b3240..5aa55998c0 100644 --- a/contributing/samples/adk_issue_formatting_agent/agent.py +++ b/contributing/samples/adk_issue_formatting_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_issue_formatting_agent/settings.py b/contributing/samples/adk_issue_formatting_agent/settings.py index d29bda9b75..ed5b1c49b2 100644 --- a/contributing/samples/adk_issue_formatting_agent/settings.py +++ b/contributing/samples/adk_issue_formatting_agent/settings.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_issue_formatting_agent/utils.py b/contributing/samples/adk_issue_formatting_agent/utils.py index c8c4561bdc..54498c8886 100644 --- a/contributing/samples/adk_issue_formatting_agent/utils.py +++ b/contributing/samples/adk_issue_formatting_agent/utils.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_knowledge_agent/__init__.py b/contributing/samples/adk_knowledge_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/adk_knowledge_agent/__init__.py +++ b/contributing/samples/adk_knowledge_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_knowledge_agent/agent.py b/contributing/samples/adk_knowledge_agent/agent.py index 90eb5e6691..9ac23dc1f1 100644 --- a/contributing/samples/adk_knowledge_agent/agent.py +++ b/contributing/samples/adk_knowledge_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_pr_agent/__init__.py b/contributing/samples/adk_pr_agent/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/adk_pr_agent/__init__.py +++ b/contributing/samples/adk_pr_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_pr_agent/agent.py b/contributing/samples/adk_pr_agent/agent.py index 7d6088ac45..043cfa61ba 100644 --- a/contributing/samples/adk_pr_agent/agent.py +++ b/contributing/samples/adk_pr_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_pr_agent/main.py b/contributing/samples/adk_pr_agent/main.py index ecf332c2d6..272b678764 100644 --- a/contributing/samples/adk_pr_agent/main.py +++ b/contributing/samples/adk_pr_agent/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_pr_triaging_agent/__init__.py b/contributing/samples/adk_pr_triaging_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/adk_pr_triaging_agent/__init__.py +++ b/contributing/samples/adk_pr_triaging_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_pr_triaging_agent/agent.py b/contributing/samples/adk_pr_triaging_agent/agent.py index 11f45131e4..8363995cc3 100644 --- a/contributing/samples/adk_pr_triaging_agent/agent.py +++ b/contributing/samples/adk_pr_triaging_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_pr_triaging_agent/main.py b/contributing/samples/adk_pr_triaging_agent/main.py index ad5893d855..fef2f242ae 100644 --- a/contributing/samples/adk_pr_triaging_agent/main.py +++ b/contributing/samples/adk_pr_triaging_agent/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_pr_triaging_agent/settings.py b/contributing/samples/adk_pr_triaging_agent/settings.py index ca1d7ff2b7..844dbdc67b 100644 --- a/contributing/samples/adk_pr_triaging_agent/settings.py +++ b/contributing/samples/adk_pr_triaging_agent/settings.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_pr_triaging_agent/utils.py b/contributing/samples/adk_pr_triaging_agent/utils.py index ebcfda9fad..1b0afbb093 100644 --- a/contributing/samples/adk_pr_triaging_agent/utils.py +++ b/contributing/samples/adk_pr_triaging_agent/utils.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_stale_agent/__init__.py b/contributing/samples/adk_stale_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/adk_stale_agent/__init__.py +++ b/contributing/samples/adk_stale_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_stale_agent/agent.py b/contributing/samples/adk_stale_agent/agent.py index e9fbe49bdf..5e252aabf7 100644 --- a/contributing/samples/adk_stale_agent/agent.py +++ b/contributing/samples/adk_stale_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_stale_agent/main.py b/contributing/samples/adk_stale_agent/main.py index d4fe58dd63..f61f87f333 100644 --- a/contributing/samples/adk_stale_agent/main.py +++ b/contributing/samples/adk_stale_agent/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_stale_agent/settings.py b/contributing/samples/adk_stale_agent/settings.py index 599c6ef2ea..82f6d3a4f0 100644 --- a/contributing/samples/adk_stale_agent/settings.py +++ b/contributing/samples/adk_stale_agent/settings.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_stale_agent/utils.py b/contributing/samples/adk_stale_agent/utils.py index a396c22ac7..e7cd721025 100644 --- a/contributing/samples/adk_stale_agent/utils.py +++ b/contributing/samples/adk_stale_agent/utils.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_triaging_agent/__init__.py b/contributing/samples/adk_triaging_agent/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/adk_triaging_agent/__init__.py +++ b/contributing/samples/adk_triaging_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_triaging_agent/agent.py b/contributing/samples/adk_triaging_agent/agent.py index 59cfb399ab..313e9cc15f 100644 --- a/contributing/samples/adk_triaging_agent/agent.py +++ b/contributing/samples/adk_triaging_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_triaging_agent/main.py b/contributing/samples/adk_triaging_agent/main.py index 3a2d4da570..2d65cfd67d 100644 --- a/contributing/samples/adk_triaging_agent/main.py +++ b/contributing/samples/adk_triaging_agent/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_triaging_agent/settings.py b/contributing/samples/adk_triaging_agent/settings.py index ea21f8c679..fdc8b4e033 100644 --- a/contributing/samples/adk_triaging_agent/settings.py +++ b/contributing/samples/adk_triaging_agent/settings.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/adk_triaging_agent/utils.py b/contributing/samples/adk_triaging_agent/utils.py index fca421abb8..8c5aa9b19d 100644 --- a/contributing/samples/adk_triaging_agent/utils.py +++ b/contributing/samples/adk_triaging_agent/utils.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/agent_engine_code_execution/__init__.py b/contributing/samples/agent_engine_code_execution/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/agent_engine_code_execution/__init__.py +++ b/contributing/samples/agent_engine_code_execution/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/agent_engine_code_execution/agent.py b/contributing/samples/agent_engine_code_execution/agent.py index ae58ec8dc4..d85989eb2d 100644 --- a/contributing/samples/agent_engine_code_execution/agent.py +++ b/contributing/samples/agent_engine_code_execution/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/api_registry_agent/__init__.py b/contributing/samples/api_registry_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/api_registry_agent/__init__.py +++ b/contributing/samples/api_registry_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/api_registry_agent/agent.py b/contributing/samples/api_registry_agent/agent.py index 393a541254..9f55ef8069 100644 --- a/contributing/samples/api_registry_agent/agent.py +++ b/contributing/samples/api_registry_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ mcp_server_name=MCP_SERVER_NAME, ) root_agent = LlmAgent( - model="gemini-2.0-flash", + model="gemini-2.5-flash", name="bigquery_assistant", instruction=f""" You are a helpful data analyst assistant with access to BigQuery. The project ID is: {PROJECT_ID} diff --git a/contributing/samples/application_integration_agent/README.md b/contributing/samples/application_integration_agent/README.md index 0e0a70c17c..961a65eb53 100644 --- a/contributing/samples/application_integration_agent/README.md +++ b/contributing/samples/application_integration_agent/README.md @@ -7,7 +7,7 @@ This sample demonstrates how to use the `ApplicationIntegrationToolset` within a ## Prerequisites 1. **Set up Integration Connection:** - * You need an existing [Integration connection](https://cloud.google.com/integration-connectors/docs/overview) configured to interact with your Jira instance. Follow the [documentation](https://google.github.io/adk-docs/tools/google-cloud-tools/#use-integration-connectors) to provision the Integration Connector in Google Cloud and then use this [documentation](https://cloud.google.com/integration-connectors/docs/connectors/jiracloud/configure) to create an Jira connection. Note the `Connection Name`, `Project ID`, and `Location` of your connection. + * You need an existing [Integration connection](https://cloud.google.com/integration-connectors/docs/overview) configured to interact with your Jira instance. Follow the [documentation](https://google.github.io/adk-docs/tools/google-cloud-tools/#use-integration-connectors) to provision the Integration Connector in Google Cloud and then use this [documentation](https://cloud.google.com/integration-connectors/docs/connectors/jiracloud/configure) to create a Jira connection. Note the `Connection Name`, `Project ID`, and `Location` of your connection. * 2. **Configure Environment Variables:** diff --git a/contributing/samples/application_integration_agent/__init__.py b/contributing/samples/application_integration_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/application_integration_agent/__init__.py +++ b/contributing/samples/application_integration_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/application_integration_agent/agent.py b/contributing/samples/application_integration_agent/agent.py index 83e1143600..fed5d8e5d1 100644 --- a/contributing/samples/application_integration_agent/agent.py +++ b/contributing/samples/application_integration_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/artifact_save_text/__init__.py b/contributing/samples/artifact_save_text/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/artifact_save_text/__init__.py +++ b/contributing/samples/artifact_save_text/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/artifact_save_text/agent.py b/contributing/samples/artifact_save_text/agent.py index 3ce43bcd15..0dd719aa96 100755 --- a/contributing/samples/artifact_save_text/agent.py +++ b/contributing/samples/artifact_save_text/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/authn-adk-all-in-one/adk_agents/agent_openapi_tools/__init__.py b/contributing/samples/authn-adk-all-in-one/adk_agents/agent_openapi_tools/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/authn-adk-all-in-one/adk_agents/agent_openapi_tools/__init__.py +++ b/contributing/samples/authn-adk-all-in-one/adk_agents/agent_openapi_tools/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/authn-adk-all-in-one/adk_agents/agent_openapi_tools/agent.py b/contributing/samples/authn-adk-all-in-one/adk_agents/agent_openapi_tools/agent.py index db956ea454..ea9101d490 100644 --- a/contributing/samples/authn-adk-all-in-one/adk_agents/agent_openapi_tools/agent.py +++ b/contributing/samples/authn-adk-all-in-one/adk_agents/agent_openapi_tools/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/authn-adk-all-in-one/hotel_booker_app/hotelbooker_core.py b/contributing/samples/authn-adk-all-in-one/hotel_booker_app/hotelbooker_core.py index 3f6916034f..8bf94632d8 100644 --- a/contributing/samples/authn-adk-all-in-one/hotel_booker_app/hotelbooker_core.py +++ b/contributing/samples/authn-adk-all-in-one/hotel_booker_app/hotelbooker_core.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/authn-adk-all-in-one/hotel_booker_app/main.py b/contributing/samples/authn-adk-all-in-one/hotel_booker_app/main.py index 87cbccd3c0..3f7c67dcba 100644 --- a/contributing/samples/authn-adk-all-in-one/hotel_booker_app/main.py +++ b/contributing/samples/authn-adk-all-in-one/hotel_booker_app/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/authn-adk-all-in-one/idp/app.py b/contributing/samples/authn-adk-all-in-one/idp/app.py index 0cc15cd084..259059ceda 100644 --- a/contributing/samples/authn-adk-all-in-one/idp/app.py +++ b/contributing/samples/authn-adk-all-in-one/idp/app.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/bigquery/__init__.py b/contributing/samples/bigquery/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/bigquery/__init__.py +++ b/contributing/samples/bigquery/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/bigquery/agent.py b/contributing/samples/bigquery/agent.py index 2389b25f47..5601795d11 100644 --- a/contributing/samples/bigquery/agent.py +++ b/contributing/samples/bigquery/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/bigquery_mcp/README.md b/contributing/samples/bigquery_mcp/README.md index bce19976ca..31fdb59895 100644 --- a/contributing/samples/bigquery_mcp/README.md +++ b/contributing/samples/bigquery_mcp/README.md @@ -4,7 +4,7 @@ This sample agent demonstrates using ADK's `McpToolset` to interact with BigQuery's official MCP endpoint, allowing an agent to access and execute -toole by leveraging the Model Context Protocol (MCP). These tools include: +tools by leveraging the Model Context Protocol (MCP). These tools include: 1. `list_dataset_ids` diff --git a/contributing/samples/bigtable/__init__.py b/contributing/samples/bigtable/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/bigtable/__init__.py +++ b/contributing/samples/bigtable/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/bigtable/agent.py b/contributing/samples/bigtable/agent.py index d79a640ba3..d35f51c1ef 100644 --- a/contributing/samples/bigtable/agent.py +++ b/contributing/samples/bigtable/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/built_in_multi_tools/__init__.py b/contributing/samples/built_in_multi_tools/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/built_in_multi_tools/__init__.py +++ b/contributing/samples/built_in_multi_tools/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/built_in_multi_tools/agent.py b/contributing/samples/built_in_multi_tools/agent.py index 3eb9ce8bef..03b53b12fa 100644 --- a/contributing/samples/built_in_multi_tools/agent.py +++ b/contributing/samples/built_in_multi_tools/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/cache_analysis/__init__.py b/contributing/samples/cache_analysis/__init__.py index 3d21a562d3..2d0ae3183e 100644 --- a/contributing/samples/cache_analysis/__init__.py +++ b/contributing/samples/cache_analysis/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/cache_analysis/agent.py b/contributing/samples/cache_analysis/agent.py index b1a25bf88a..d768cb97c3 100644 --- a/contributing/samples/cache_analysis/agent.py +++ b/contributing/samples/cache_analysis/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/cache_analysis/run_cache_experiments.py b/contributing/samples/cache_analysis/run_cache_experiments.py index c65df3cf1d..d163e09363 100644 --- a/contributing/samples/cache_analysis/run_cache_experiments.py +++ b/contributing/samples/cache_analysis/run_cache_experiments.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/cache_analysis/utils.py b/contributing/samples/cache_analysis/utils.py index e2c9f89101..2c4ad71d2f 100644 --- a/contributing/samples/cache_analysis/utils.py +++ b/contributing/samples/cache_analysis/utils.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/callbacks/__init__.py b/contributing/samples/callbacks/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/callbacks/__init__.py +++ b/contributing/samples/callbacks/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/callbacks/agent.py b/contributing/samples/callbacks/agent.py index adbf15a643..e67b7de2ca 100755 --- a/contributing/samples/callbacks/agent.py +++ b/contributing/samples/callbacks/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/callbacks/main.py b/contributing/samples/callbacks/main.py index 7cbf15e480..17038c42f7 100755 --- a/contributing/samples/callbacks/main.py +++ b/contributing/samples/callbacks/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/code_execution/__init__.py b/contributing/samples/code_execution/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/code_execution/__init__.py +++ b/contributing/samples/code_execution/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/code_execution/agent.py b/contributing/samples/code_execution/agent.py index 82de04f25d..9f99ac4582 100644 --- a/contributing/samples/code_execution/agent.py +++ b/contributing/samples/code_execution/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/code_execution/gke_sandbox_agent.py b/contributing/samples/code_execution/gke_sandbox_agent.py index 4baaf52152..a92de91c38 100644 --- a/contributing/samples/code_execution/gke_sandbox_agent.py +++ b/contributing/samples/code_execution/gke_sandbox_agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/computer_use/agent.py b/contributing/samples/computer_use/agent.py index 001995019d..74bac02c77 100755 --- a/contributing/samples/computer_use/agent.py +++ b/contributing/samples/computer_use/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/computer_use/playwright.py b/contributing/samples/computer_use/playwright.py index 89b216adf3..e8a5e95f02 100644 --- a/contributing/samples/computer_use/playwright.py +++ b/contributing/samples/computer_use/playwright.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/context_offloading_with_artifact/README.md b/contributing/samples/context_offloading_with_artifact/README.md index 93f391107e..741552bc33 100644 --- a/contributing/samples/context_offloading_with_artifact/README.md +++ b/contributing/samples/context_offloading_with_artifact/README.md @@ -32,7 +32,7 @@ response. This keeps the turn events small, saving context space. the *next* request to the LLM. This makes the report data available immediately, allowing the agent to summarize it or answer questions in the same turn, as seen in the logs. This artifact is only appended for that - round and not saved to session. For furtuer rounds of conversation, it will + round and not saved to session. For future rounds of conversation, it will be removed from context. 3. **Loading on Demand**: The `CustomLoadArtifactsTool` enhances the default `load_artifacts` behavior. diff --git a/contributing/samples/context_offloading_with_artifact/__init__.py b/contributing/samples/context_offloading_with_artifact/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/context_offloading_with_artifact/__init__.py +++ b/contributing/samples/context_offloading_with_artifact/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/context_offloading_with_artifact/agent.py b/contributing/samples/context_offloading_with_artifact/agent.py index 622834917e..6e62e8f034 100755 --- a/contributing/samples/context_offloading_with_artifact/agent.py +++ b/contributing/samples/context_offloading_with_artifact/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/core_callback_config/__init__.py b/contributing/samples/core_callback_config/__init__.py index 0a2669d7a2..58d482ea38 100644 --- a/contributing/samples/core_callback_config/__init__.py +++ b/contributing/samples/core_callback_config/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/core_custom_agent_config/__init__.py b/contributing/samples/core_custom_agent_config/__init__.py index 0a2669d7a2..58d482ea38 100644 --- a/contributing/samples/core_custom_agent_config/__init__.py +++ b/contributing/samples/core_custom_agent_config/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/core_custom_agent_config/my_agents.py b/contributing/samples/core_custom_agent_config/my_agents.py index 750fcc6c47..4282c1d489 100644 --- a/contributing/samples/core_custom_agent_config/my_agents.py +++ b/contributing/samples/core_custom_agent_config/my_agents.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/crewai_tool_kwargs/__init__.py b/contributing/samples/crewai_tool_kwargs/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/crewai_tool_kwargs/__init__.py +++ b/contributing/samples/crewai_tool_kwargs/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/crewai_tool_kwargs/agent.py b/contributing/samples/crewai_tool_kwargs/agent.py index f52d703dc8..5e863558a0 100644 --- a/contributing/samples/crewai_tool_kwargs/agent.py +++ b/contributing/samples/crewai_tool_kwargs/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/crewai_tool_kwargs/main.py b/contributing/samples/crewai_tool_kwargs/main.py index 15ade6f774..2b0cd8230c 100644 --- a/contributing/samples/crewai_tool_kwargs/main.py +++ b/contributing/samples/crewai_tool_kwargs/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/custom_code_execution/__init__.py b/contributing/samples/custom_code_execution/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/custom_code_execution/__init__.py +++ b/contributing/samples/custom_code_execution/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/custom_code_execution/agent.py b/contributing/samples/custom_code_execution/agent.py index e27c8dfb26..2c6efed348 100644 --- a/contributing/samples/custom_code_execution/agent.py +++ b/contributing/samples/custom_code_execution/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/data_agent/README.md b/contributing/samples/data_agent/README.md new file mode 100644 index 0000000000..d9565b2c72 --- /dev/null +++ b/contributing/samples/data_agent/README.md @@ -0,0 +1,57 @@ +# Data Agent Sample + +This sample agent demonstrates ADK's first-party tools for interacting with +Data Agents powered by [Conversational Analytics API](https://docs.cloud.google.com/gemini/docs/conversational-analytics-api/overview). +These tools are distributed via +the `google.adk.tools.data_agent` module and allow you to list, +inspect, and +chat with Data Agents using natural language. + +These tools leverage stateful conversations, meaning you can ask follow-up +questions in the same session, and the agent will maintain context. + +## Prerequisites + +1. An active Google Cloud project with BigQuery and Gemini APIs enabled. +2. Google Cloud authentication configured for Application Default Credentials: + ```bash + gcloud auth application-default login + ``` +3. At least one Data Agent created. You could create data agents via + [Conversational API](https://docs.cloud.google.com/gemini/docs/conversational-analytics-api/overview), + its + [Python SDK](https://docs.cloud.google.com/gemini/docs/conversational-analytics-api/build-agent-sdk), + or for BigQuery data + [BigQuery Studio](https://docs.cloud.google.com/bigquery/docs/create-data-agents#create_a_data_agent). + These agents are created and configured in the Google Cloud console and + point to your BigQuery tables or other data sources. +4. Follow the official + [Setup and prerequisites](https://docs.cloud.google.com/gemini/docs/conversational-analytics-api/overview#setup) + guide to enable the API and configure IAM permissions and authentication for + your data sources. + +## Tools Used + +* `list_accessible_data_agents`: Lists Data Agents you have permission to + access in the configured GCP project. +* `get_data_agent_info`: Retrieves details about a specific Data Agent given + its full resource name. +* `ask_data_agent`: Chats with a specific Data Agent using natural language. + +## How to Run + +1. Navigate to the root of the ADK repository. +2. Run the agent using the ADK CLI: + ```bash + adk run --agent-path contributing/samples/data_agent + ``` +3. The CLI will prompt you for input. You can ask questions like the examples + below. + +## Sample prompts + +* "List accessible data agents." +* "Using agent + `projects/my-project/locations/global/dataAgents/sales-agent-123`, who were + my top 3 customers last quarter?" +* "How does that compare to the quarter before?" diff --git a/contributing/samples/data_agent/__init__.py b/contributing/samples/data_agent/__init__.py new file mode 100644 index 0000000000..4015e47d6e --- /dev/null +++ b/contributing/samples/data_agent/__init__.py @@ -0,0 +1,15 @@ +# Copyright 2026 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 . import agent diff --git a/contributing/samples/data_agent/agent.py b/contributing/samples/data_agent/agent.py new file mode 100644 index 0000000000..634a476286 --- /dev/null +++ b/contributing/samples/data_agent/agent.py @@ -0,0 +1,84 @@ +# Copyright 2026 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 os + +from google.adk.agents import Agent +from google.adk.auth.auth_credential import AuthCredentialTypes +from google.adk.tools.data_agent.config import DataAgentToolConfig +from google.adk.tools.data_agent.credentials import DataAgentCredentialsConfig +from google.adk.tools.data_agent.data_agent_toolset import DataAgentToolset +import google.auth +import google.auth.transport.requests + +# Define the desired credential type. +# By default use Application Default Credentials (ADC) from the local +# environment, which can be set up by following +# https://cloud.google.com/docs/authentication/provide-credentials-adc. +CREDENTIALS_TYPE = None + +if CREDENTIALS_TYPE == AuthCredentialTypes.OAUTH2: + # Initiaze the tools to do interactive OAuth + # The environment variables OAUTH_CLIENT_ID and OAUTH_CLIENT_SECRET + # must be set + credentials_config = DataAgentCredentialsConfig( + client_id=os.getenv("OAUTH_CLIENT_ID"), + client_secret=os.getenv("OAUTH_CLIENT_SECRET"), + ) +elif CREDENTIALS_TYPE == AuthCredentialTypes.SERVICE_ACCOUNT: + # Initialize the tools to use the credentials in the service account key. + # If this flow is enabled, make sure to replace the file path with your own + # service account key file + # https://cloud.google.com/iam/docs/service-account-creds#user-managed-keys + creds, _ = google.auth.load_credentials_from_file( + "service_account_key.json", + scopes=["https://www.googleapis.com/auth/cloud-platform"], + ) + creds.refresh(google.auth.transport.requests.Request()) + credentials_config = DataAgentCredentialsConfig(credentials=creds) +else: + # Initialize the tools to use the application default credentials. + # https://cloud.google.com/docs/authentication/provide-credentials-adc + application_default_credentials, _ = google.auth.default() + credentials_config = DataAgentCredentialsConfig( + credentials=application_default_credentials + ) + +tool_config = DataAgentToolConfig( + max_query_result_rows=100, +) +da_toolset = DataAgentToolset( + credentials_config=credentials_config, + data_agent_tool_config=tool_config, + tool_filter=[ + "list_accessible_data_agents", + "get_data_agent_info", + "ask_data_agent", + ], +) + +root_agent = Agent( + name="data_agent", + model="gemini-2.0-flash", + description="Agent to answer user questions using Data Agents.", + instruction=( + "## Persona\nYou are a helpful assistant that uses Data Agents" + " to answer user questions about their data.\n\n## Tools\n- You can" + " list available data agents using `list_accessible_data_agents`.\n-" + " You can get information about a specific data agent using" + " `get_data_agent_info`.\n- You can chat with a specific data" + " agent using `ask_data_agent`.\n" + ), + tools=[da_toolset], +) diff --git a/contributing/samples/dummy_services.py b/contributing/samples/dummy_services.py index 50c5dfab3a..5fff0c9674 100644 --- a/contributing/samples/dummy_services.py +++ b/contributing/samples/dummy_services.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/fields_output_schema/__init__.py b/contributing/samples/fields_output_schema/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/fields_output_schema/__init__.py +++ b/contributing/samples/fields_output_schema/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/fields_output_schema/agent.py b/contributing/samples/fields_output_schema/agent.py index 70645ea9ba..de40774d81 100644 --- a/contributing/samples/fields_output_schema/agent.py +++ b/contributing/samples/fields_output_schema/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/fields_planner/__init__.py b/contributing/samples/fields_planner/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/fields_planner/__init__.py +++ b/contributing/samples/fields_planner/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/fields_planner/agent.py b/contributing/samples/fields_planner/agent.py index a40616585d..b75dfec73c 100755 --- a/contributing/samples/fields_planner/agent.py +++ b/contributing/samples/fields_planner/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/fields_planner/main.py b/contributing/samples/fields_planner/main.py index 01a5e4aa4e..0c128fd982 100755 --- a/contributing/samples/fields_planner/main.py +++ b/contributing/samples/fields_planner/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/generate_image/__init__.py b/contributing/samples/generate_image/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/generate_image/__init__.py +++ b/contributing/samples/generate_image/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/generate_image/agent.py b/contributing/samples/generate_image/agent.py index 8589442732..4379de1b57 100644 --- a/contributing/samples/generate_image/agent.py +++ b/contributing/samples/generate_image/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -15,15 +15,15 @@ from google.adk import Agent from google.adk.tools import load_artifacts from google.adk.tools.tool_context import ToolContext -from google.genai import Client from google.genai import types -# Only Vertex AI supports image generation for now. -client = Client() - async def generate_image(prompt: str, tool_context: 'ToolContext'): """Generates an image based on the prompt.""" + from google.genai import Client + + # Only Vertex AI supports image generation for now. + client = Client() response = client.models.generate_images( model='imagen-3.0-generate-002', prompt=prompt, diff --git a/contributing/samples/gepa/__init__.py b/contributing/samples/gepa/__init__.py index 0a2669d7a2..58d482ea38 100644 --- a/contributing/samples/gepa/__init__.py +++ b/contributing/samples/gepa/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/gepa/adk_agent.py b/contributing/samples/gepa/adk_agent.py index e4bc517def..808426f9a3 100644 --- a/contributing/samples/gepa/adk_agent.py +++ b/contributing/samples/gepa/adk_agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/gepa/adk_agent_test.py b/contributing/samples/gepa/adk_agent_test.py index ff6137e23a..bdffd125f8 100644 --- a/contributing/samples/gepa/adk_agent_test.py +++ b/contributing/samples/gepa/adk_agent_test.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/gepa/experiment.py b/contributing/samples/gepa/experiment.py index 2f5d03a772..f3751206a8 100644 --- a/contributing/samples/gepa/experiment.py +++ b/contributing/samples/gepa/experiment.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/gepa/rater_lib.py b/contributing/samples/gepa/rater_lib.py index 732d1bcf9d..50bbdc229d 100644 --- a/contributing/samples/gepa/rater_lib.py +++ b/contributing/samples/gepa/rater_lib.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/gepa/run_experiment.py b/contributing/samples/gepa/run_experiment.py index cfd850b3a3..d857da9635 100644 --- a/contributing/samples/gepa/run_experiment.py +++ b/contributing/samples/gepa/run_experiment.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/gepa/tau_bench_agent.py b/contributing/samples/gepa/tau_bench_agent.py index beb78b9643..cd6b021241 100644 --- a/contributing/samples/gepa/tau_bench_agent.py +++ b/contributing/samples/gepa/tau_bench_agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/gepa/utils.py b/contributing/samples/gepa/utils.py index 0763d28043..19f35f551f 100644 --- a/contributing/samples/gepa/utils.py +++ b/contributing/samples/gepa/utils.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/gepa/voter_agent/gepa.ipynb b/contributing/samples/gepa/voter_agent/gepa.ipynb index 2b920d6cf8..5131bedc39 100644 --- a/contributing/samples/gepa/voter_agent/gepa.ipynb +++ b/contributing/samples/gepa/voter_agent/gepa.ipynb @@ -8,7 +8,7 @@ }, "outputs": [], "source": [ - "# Copyright 2025 Google LLC\n", + "# Copyright 2026 Google LLC\n", "#\n", "# Licensed under the Apache License, Version 2.0 (the \"License\");\n", "# you may not use this file except in compliance with the License.\n", diff --git a/contributing/samples/gepa/voter_agent/tools.py b/contributing/samples/gepa/voter_agent/tools.py index c677591ada..80cffa72f8 100644 --- a/contributing/samples/gepa/voter_agent/tools.py +++ b/contributing/samples/gepa/voter_agent/tools.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/google_api/__init__.py b/contributing/samples/google_api/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/google_api/__init__.py +++ b/contributing/samples/google_api/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/google_api/agent.py b/contributing/samples/google_api/agent.py index 390f1bca10..1a096ba8d5 100644 --- a/contributing/samples/google_api/agent.py +++ b/contributing/samples/google_api/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/google_search_agent/__init__.py b/contributing/samples/google_search_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/google_search_agent/__init__.py +++ b/contributing/samples/google_search_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/google_search_agent/agent.py b/contributing/samples/google_search_agent/agent.py index 2f647812ab..63e877a8da 100644 --- a/contributing/samples/google_search_agent/agent.py +++ b/contributing/samples/google_search_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world/__init__.py b/contributing/samples/hello_world/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/hello_world/__init__.py +++ b/contributing/samples/hello_world/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world/agent.py b/contributing/samples/hello_world/agent.py index 95d8b989e7..28d1847aef 100755 --- a/contributing/samples/hello_world/agent.py +++ b/contributing/samples/hello_world/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -65,7 +65,7 @@ async def check_prime(nums: list[int]) -> str: root_agent = Agent( - model='gemini-2.0-flash', + model='gemini-2.5-flash', name='hello_world_agent', description=( 'hello world agent that can roll a dice of 8 sides and check prime' diff --git a/contributing/samples/hello_world/main.py b/contributing/samples/hello_world/main.py index b9e3035528..0ffde91341 100755 --- a/contributing/samples/hello_world/main.py +++ b/contributing/samples/hello_world/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_anthropic/__init__.py b/contributing/samples/hello_world_anthropic/__init__.py index 7d5bb0b1c6..044e24d388 100644 --- a/contributing/samples/hello_world_anthropic/__init__.py +++ b/contributing/samples/hello_world_anthropic/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_anthropic/agent.py b/contributing/samples/hello_world_anthropic/agent.py index bafe7fa1b6..ea408cfff9 100644 --- a/contributing/samples/hello_world_anthropic/agent.py +++ b/contributing/samples/hello_world_anthropic/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_anthropic/main.py b/contributing/samples/hello_world_anthropic/main.py index 8886267e01..8abff7876c 100644 --- a/contributing/samples/hello_world_anthropic/main.py +++ b/contributing/samples/hello_world_anthropic/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_apigeellm/agent.py b/contributing/samples/hello_world_apigeellm/agent.py index 21bf0936b9..3c36e768fb 100644 --- a/contributing/samples/hello_world_apigeellm/agent.py +++ b/contributing/samples/hello_world_apigeellm/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_apigeellm/main.py b/contributing/samples/hello_world_apigeellm/main.py index 1e81097ddc..b57482fd2f 100644 --- a/contributing/samples/hello_world_apigeellm/main.py +++ b/contributing/samples/hello_world_apigeellm/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_app/__init__.py b/contributing/samples/hello_world_app/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/hello_world_app/__init__.py +++ b/contributing/samples/hello_world_app/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_app/agent.py b/contributing/samples/hello_world_app/agent.py index 04ba197946..dd8dd312fc 100755 --- a/contributing/samples/hello_world_app/agent.py +++ b/contributing/samples/hello_world_app/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_app/main.py b/contributing/samples/hello_world_app/main.py index f9a2ac78d0..d024b4cef2 100755 --- a/contributing/samples/hello_world_app/main.py +++ b/contributing/samples/hello_world_app/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_gemma/__init__.py b/contributing/samples/hello_world_gemma/__init__.py index 7d5bb0b1c6..044e24d388 100644 --- a/contributing/samples/hello_world_gemma/__init__.py +++ b/contributing/samples/hello_world_gemma/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_gemma/agent.py b/contributing/samples/hello_world_gemma/agent.py index 3407d721d3..c6e5640242 100644 --- a/contributing/samples/hello_world_gemma/agent.py +++ b/contributing/samples/hello_world_gemma/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_gemma/main.py b/contributing/samples/hello_world_gemma/main.py index f177064b68..7f46027df8 100644 --- a/contributing/samples/hello_world_gemma/main.py +++ b/contributing/samples/hello_world_gemma/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_gemma3_ollama/__init__.py b/contributing/samples/hello_world_gemma3_ollama/__init__.py index 7d5bb0b1c6..044e24d388 100644 --- a/contributing/samples/hello_world_gemma3_ollama/__init__.py +++ b/contributing/samples/hello_world_gemma3_ollama/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_gemma3_ollama/agent.py b/contributing/samples/hello_world_gemma3_ollama/agent.py index 58294e5661..ae89a45153 100644 --- a/contributing/samples/hello_world_gemma3_ollama/agent.py +++ b/contributing/samples/hello_world_gemma3_ollama/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_gemma3_ollama/main.py b/contributing/samples/hello_world_gemma3_ollama/main.py index a383b4f279..7f97d5e63d 100644 --- a/contributing/samples/hello_world_gemma3_ollama/main.py +++ b/contributing/samples/hello_world_gemma3_ollama/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_litellm/__init__.py b/contributing/samples/hello_world_litellm/__init__.py index 7d5bb0b1c6..044e24d388 100644 --- a/contributing/samples/hello_world_litellm/__init__.py +++ b/contributing/samples/hello_world_litellm/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_litellm/agent.py b/contributing/samples/hello_world_litellm/agent.py index 3a4189403f..c41c5b0cdc 100644 --- a/contributing/samples/hello_world_litellm/agent.py +++ b/contributing/samples/hello_world_litellm/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_litellm/main.py b/contributing/samples/hello_world_litellm/main.py index 4492c6153b..aacdded41e 100644 --- a/contributing/samples/hello_world_litellm/main.py +++ b/contributing/samples/hello_world_litellm/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_litellm_add_function_to_prompt/__init__.py b/contributing/samples/hello_world_litellm_add_function_to_prompt/__init__.py index 7d5bb0b1c6..044e24d388 100644 --- a/contributing/samples/hello_world_litellm_add_function_to_prompt/__init__.py +++ b/contributing/samples/hello_world_litellm_add_function_to_prompt/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_litellm_add_function_to_prompt/agent.py b/contributing/samples/hello_world_litellm_add_function_to_prompt/agent.py index 0f10621ae7..a24d0f11eb 100644 --- a/contributing/samples/hello_world_litellm_add_function_to_prompt/agent.py +++ b/contributing/samples/hello_world_litellm_add_function_to_prompt/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_litellm_add_function_to_prompt/main.py b/contributing/samples/hello_world_litellm_add_function_to_prompt/main.py index 4bec7d0500..4ec966226c 100644 --- a/contributing/samples/hello_world_litellm_add_function_to_prompt/main.py +++ b/contributing/samples/hello_world_litellm_add_function_to_prompt/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_ma/__init__.py b/contributing/samples/hello_world_ma/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/hello_world_ma/__init__.py +++ b/contributing/samples/hello_world_ma/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_ma/agent.py b/contributing/samples/hello_world_ma/agent.py index 410d516d12..fad1e2b9eb 100755 --- a/contributing/samples/hello_world_ma/agent.py +++ b/contributing/samples/hello_world_ma/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_ollama/__init__.py b/contributing/samples/hello_world_ollama/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/hello_world_ollama/__init__.py +++ b/contributing/samples/hello_world_ollama/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_ollama/agent.py b/contributing/samples/hello_world_ollama/agent.py index 7301aa5310..0fef917a02 100755 --- a/contributing/samples/hello_world_ollama/agent.py +++ b/contributing/samples/hello_world_ollama/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_ollama/main.py b/contributing/samples/hello_world_ollama/main.py index 28fdbbbc92..f6bb2d74af 100755 --- a/contributing/samples/hello_world_ollama/main.py +++ b/contributing/samples/hello_world_ollama/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_stream_fc_args/__init__.py b/contributing/samples/hello_world_stream_fc_args/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/hello_world_stream_fc_args/__init__.py +++ b/contributing/samples/hello_world_stream_fc_args/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/hello_world_stream_fc_args/agent.py b/contributing/samples/hello_world_stream_fc_args/agent.py index f613842171..8b0593a0bd 100755 --- a/contributing/samples/hello_world_stream_fc_args/agent.py +++ b/contributing/samples/hello_world_stream_fc_args/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/history_management/__init__.py b/contributing/samples/history_management/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/history_management/__init__.py +++ b/contributing/samples/history_management/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/history_management/agent.py b/contributing/samples/history_management/agent.py index 9621b61cb6..a9d4cf85ec 100755 --- a/contributing/samples/history_management/agent.py +++ b/contributing/samples/history_management/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/history_management/main.py b/contributing/samples/history_management/main.py index 7cbf15e480..17038c42f7 100755 --- a/contributing/samples/history_management/main.py +++ b/contributing/samples/history_management/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/human_in_loop/__init__.py b/contributing/samples/human_in_loop/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/human_in_loop/__init__.py +++ b/contributing/samples/human_in_loop/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/human_in_loop/agent.py b/contributing/samples/human_in_loop/agent.py index 92f0c51af3..3ea740b7a1 100644 --- a/contributing/samples/human_in_loop/agent.py +++ b/contributing/samples/human_in_loop/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/human_in_loop/main.py b/contributing/samples/human_in_loop/main.py index 2e664b73df..3103da9147 100644 --- a/contributing/samples/human_in_loop/main.py +++ b/contributing/samples/human_in_loop/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/human_tool_confirmation/__init__.py b/contributing/samples/human_tool_confirmation/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/human_tool_confirmation/__init__.py +++ b/contributing/samples/human_tool_confirmation/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/human_tool_confirmation/agent.py b/contributing/samples/human_tool_confirmation/agent.py index e1ef5a518e..bf9e6cdfc3 100644 --- a/contributing/samples/human_tool_confirmation/agent.py +++ b/contributing/samples/human_tool_confirmation/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/integration_connector_euc_agent/__init__.py b/contributing/samples/integration_connector_euc_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/integration_connector_euc_agent/__init__.py +++ b/contributing/samples/integration_connector_euc_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/integration_connector_euc_agent/agent.py b/contributing/samples/integration_connector_euc_agent/agent.py index a66e812fa0..7bac45909c 100644 --- a/contributing/samples/integration_connector_euc_agent/agent.py +++ b/contributing/samples/integration_connector_euc_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/interactions_api/__init__.py b/contributing/samples/interactions_api/__init__.py index 1c8fb5723b..f69d3b9701 100644 --- a/contributing/samples/interactions_api/__init__.py +++ b/contributing/samples/interactions_api/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/interactions_api/agent.py b/contributing/samples/interactions_api/agent.py index 2928bb6ebd..908a853948 100644 --- a/contributing/samples/interactions_api/agent.py +++ b/contributing/samples/interactions_api/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/interactions_api/main.py b/contributing/samples/interactions_api/main.py index bfe73b7c06..a776f31ea9 100644 --- a/contributing/samples/interactions_api/main.py +++ b/contributing/samples/interactions_api/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/jira_agent/__init__.py b/contributing/samples/jira_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/jira_agent/__init__.py +++ b/contributing/samples/jira_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/jira_agent/agent.py b/contributing/samples/jira_agent/agent.py index 537d8f0845..70dcd11fe9 100644 --- a/contributing/samples/jira_agent/agent.py +++ b/contributing/samples/jira_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/jira_agent/tools.py b/contributing/samples/jira_agent/tools.py index 94c37565fa..5f673a5e69 100644 --- a/contributing/samples/jira_agent/tools.py +++ b/contributing/samples/jira_agent/tools.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/json_passing_agent/__init__.py b/contributing/samples/json_passing_agent/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/json_passing_agent/__init__.py +++ b/contributing/samples/json_passing_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/json_passing_agent/agent.py b/contributing/samples/json_passing_agent/agent.py index 532134f42a..7d71ce3a65 100755 --- a/contributing/samples/json_passing_agent/agent.py +++ b/contributing/samples/json_passing_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/json_passing_agent/main.py b/contributing/samples/json_passing_agent/main.py index f87d739bd6..d0e68e11ff 100644 --- a/contributing/samples/json_passing_agent/main.py +++ b/contributing/samples/json_passing_agent/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/langchain_structured_tool_agent/__init__.py b/contributing/samples/langchain_structured_tool_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/langchain_structured_tool_agent/__init__.py +++ b/contributing/samples/langchain_structured_tool_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/langchain_structured_tool_agent/agent.py b/contributing/samples/langchain_structured_tool_agent/agent.py index e83bc40b2f..a055edf3a5 100644 --- a/contributing/samples/langchain_structured_tool_agent/agent.py +++ b/contributing/samples/langchain_structured_tool_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/langchain_youtube_search_agent/__init__.py b/contributing/samples/langchain_youtube_search_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/langchain_youtube_search_agent/__init__.py +++ b/contributing/samples/langchain_youtube_search_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/langchain_youtube_search_agent/agent.py b/contributing/samples/langchain_youtube_search_agent/agent.py index 005fe38709..e3a893e443 100644 --- a/contributing/samples/langchain_youtube_search_agent/agent.py +++ b/contributing/samples/langchain_youtube_search_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/litellm_inline_tool_call/__init__.py b/contributing/samples/litellm_inline_tool_call/__init__.py index 976288f8e2..606228d280 100644 --- a/contributing/samples/litellm_inline_tool_call/__init__.py +++ b/contributing/samples/litellm_inline_tool_call/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/litellm_inline_tool_call/agent.py b/contributing/samples/litellm_inline_tool_call/agent.py index 94847aa8d5..76ca1ad14d 100644 --- a/contributing/samples/litellm_inline_tool_call/agent.py +++ b/contributing/samples/litellm_inline_tool_call/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/litellm_structured_output/__init__.py b/contributing/samples/litellm_structured_output/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/litellm_structured_output/__init__.py +++ b/contributing/samples/litellm_structured_output/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/litellm_structured_output/agent.py b/contributing/samples/litellm_structured_output/agent.py index 8fdd5f6661..b8741e3684 100644 --- a/contributing/samples/litellm_structured_output/agent.py +++ b/contributing/samples/litellm_structured_output/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/litellm_with_fallback_models/__init__.py b/contributing/samples/litellm_with_fallback_models/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/litellm_with_fallback_models/__init__.py +++ b/contributing/samples/litellm_with_fallback_models/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/litellm_with_fallback_models/agent.py b/contributing/samples/litellm_with_fallback_models/agent.py index 2e46a7fb44..49deb248fd 100644 --- a/contributing/samples/litellm_with_fallback_models/agent.py +++ b/contributing/samples/litellm_with_fallback_models/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/live_agent_api_server_example/live_agent_example.py b/contributing/samples/live_agent_api_server_example/live_agent_example.py index c6624124b1..da06be086a 100644 --- a/contributing/samples/live_agent_api_server_example/live_agent_example.py +++ b/contributing/samples/live_agent_api_server_example/live_agent_example.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/live_bidi_debug_utils/pcm_audio_player.py b/contributing/samples/live_bidi_debug_utils/pcm_audio_player.py index ab0726bf4f..045ef10e48 100644 --- a/contributing/samples/live_bidi_debug_utils/pcm_audio_player.py +++ b/contributing/samples/live_bidi_debug_utils/pcm_audio_player.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/live_bidi_streaming_multi_agent/__init__.py b/contributing/samples/live_bidi_streaming_multi_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/live_bidi_streaming_multi_agent/__init__.py +++ b/contributing/samples/live_bidi_streaming_multi_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/live_bidi_streaming_multi_agent/agent.py b/contributing/samples/live_bidi_streaming_multi_agent/agent.py index e69ada5aa1..312c043491 100644 --- a/contributing/samples/live_bidi_streaming_multi_agent/agent.py +++ b/contributing/samples/live_bidi_streaming_multi_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/live_bidi_streaming_single_agent/__init__.py b/contributing/samples/live_bidi_streaming_single_agent/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/live_bidi_streaming_single_agent/__init__.py +++ b/contributing/samples/live_bidi_streaming_single_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/live_bidi_streaming_single_agent/agent.py b/contributing/samples/live_bidi_streaming_single_agent/agent.py index cd707a3557..f20c948641 100755 --- a/contributing/samples/live_bidi_streaming_single_agent/agent.py +++ b/contributing/samples/live_bidi_streaming_single_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/live_bidi_streaming_tools_agent/__init__.py b/contributing/samples/live_bidi_streaming_tools_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/live_bidi_streaming_tools_agent/__init__.py +++ b/contributing/samples/live_bidi_streaming_tools_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/live_bidi_streaming_tools_agent/agent.py b/contributing/samples/live_bidi_streaming_tools_agent/agent.py index c556518656..57e2279e10 100644 --- a/contributing/samples/live_bidi_streaming_tools_agent/agent.py +++ b/contributing/samples/live_bidi_streaming_tools_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -18,7 +18,6 @@ from google.adk.agents import LiveRequestQueue from google.adk.agents.llm_agent import Agent from google.adk.tools.function_tool import FunctionTool -from google.genai import Client from google.genai import types as genai_types @@ -53,7 +52,11 @@ async def monitor_video_stream( input_stream: LiveRequestQueue, ) -> AsyncGenerator[str, None]: """Monitor how many people are in the video streams.""" + from google.genai import Client + print("start monitor_video_stream!") + from google.genai import Client + client = Client(vertexai=False) prompt_text = ( "Count the number of people in this image. Just respond with a numeric" @@ -87,7 +90,7 @@ async def monitor_video_stream( # Call the model to generate content based on the provided image and prompt response = client.models.generate_content( - model="gemini-2.0-flash-exp", + model="gemini-2.5-flash", contents=contents, config=genai_types.GenerateContentConfig( system_instruction=( @@ -121,9 +124,11 @@ def stop_streaming(function_name: str): root_agent = Agent( - # find supported models here: https://google.github.io/adk-docs/get-started/streaming/quickstart-streaming/ - model="gemini-2.0-flash-live-preview-04-09", # for Vertex project - # model="gemini-live-2.5-flash-preview", # for AI studio key + # see https://docs.cloud.google.com/vertex-ai/generative-ai/docs/migrate + # for vertex model names + model="gemini-live-2.5-flash-native-audio", # vertex + # see https://ai.google.dev/gemini-api/docs/models for AIS model names + # model='gemini-2.5-flash-native-audio-latest', # for AI studio name="video_streaming_agent", instruction=""" You are a monitoring agent. You can do video monitoring and stock price monitoring diff --git a/contributing/samples/live_tool_callbacks_agent/__init__.py b/contributing/samples/live_tool_callbacks_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/live_tool_callbacks_agent/__init__.py +++ b/contributing/samples/live_tool_callbacks_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/live_tool_callbacks_agent/agent.py b/contributing/samples/live_tool_callbacks_agent/agent.py index 95af9d8f22..a140ac5a15 100644 --- a/contributing/samples/live_tool_callbacks_agent/agent.py +++ b/contributing/samples/live_tool_callbacks_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/logprobs/__init__.py b/contributing/samples/logprobs/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/logprobs/__init__.py +++ b/contributing/samples/logprobs/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/logprobs/agent.py b/contributing/samples/logprobs/agent.py index c5f7daaba4..d38e6ccd40 100644 --- a/contributing/samples/logprobs/agent.py +++ b/contributing/samples/logprobs/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/manual_ollama_test/__init__.py b/contributing/samples/manual_ollama_test/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/manual_ollama_test/__init__.py +++ b/contributing/samples/manual_ollama_test/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/manual_ollama_test/agent.py b/contributing/samples/manual_ollama_test/agent.py index e3d071b96f..2fe8909831 100644 --- a/contributing/samples/manual_ollama_test/agent.py +++ b/contributing/samples/manual_ollama_test/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/mcp_dynamic_header_agent/__init__.py b/contributing/samples/mcp_dynamic_header_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/mcp_dynamic_header_agent/__init__.py +++ b/contributing/samples/mcp_dynamic_header_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/mcp_dynamic_header_agent/agent.py b/contributing/samples/mcp_dynamic_header_agent/agent.py index 028d7feb12..0d3ce7f6a6 100644 --- a/contributing/samples/mcp_dynamic_header_agent/agent.py +++ b/contributing/samples/mcp_dynamic_header_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -18,7 +18,7 @@ from google.adk.tools.mcp_tool.mcp_toolset import McpToolset root_agent = LlmAgent( - model='gemini-2.0-flash', + model='gemini-2.5-flash', name='tenant_agent', instruction="""You are a helpful assistant that helps users get tenant information. Call the get_tenant_data tool when the user asks for tenant data.""", diff --git a/contributing/samples/mcp_dynamic_header_agent/header_server.py b/contributing/samples/mcp_dynamic_header_agent/header_server.py index 386ae43bdf..095cb0ed93 100644 --- a/contributing/samples/mcp_dynamic_header_agent/header_server.py +++ b/contributing/samples/mcp_dynamic_header_agent/header_server.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/mcp_in_agent_tool_remote/__init__.py b/contributing/samples/mcp_in_agent_tool_remote/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/mcp_in_agent_tool_remote/__init__.py +++ b/contributing/samples/mcp_in_agent_tool_remote/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/mcp_in_agent_tool_remote/agent.py b/contributing/samples/mcp_in_agent_tool_remote/agent.py index f446d8ca59..f486274aa8 100644 --- a/contributing/samples/mcp_in_agent_tool_remote/agent.py +++ b/contributing/samples/mcp_in_agent_tool_remote/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/mcp_in_agent_tool_stdio/__init__.py b/contributing/samples/mcp_in_agent_tool_stdio/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/mcp_in_agent_tool_stdio/__init__.py +++ b/contributing/samples/mcp_in_agent_tool_stdio/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/mcp_in_agent_tool_stdio/agent.py b/contributing/samples/mcp_in_agent_tool_stdio/agent.py index e140bf7b25..74e20387e9 100644 --- a/contributing/samples/mcp_in_agent_tool_stdio/agent.py +++ b/contributing/samples/mcp_in_agent_tool_stdio/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/mcp_postgres_agent/__init__.py b/contributing/samples/mcp_postgres_agent/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/mcp_postgres_agent/__init__.py +++ b/contributing/samples/mcp_postgres_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/mcp_postgres_agent/agent.py b/contributing/samples/mcp_postgres_agent/agent.py index 7298e25004..09e75b44d0 100644 --- a/contributing/samples/mcp_postgres_agent/agent.py +++ b/contributing/samples/mcp_postgres_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,7 @@ ) root_agent = LlmAgent( - model="gemini-2.0-flash", + model="gemini-2.5-flash", name="postgres_agent", instruction=( "You are a PostgreSQL database assistant. " diff --git a/contributing/samples/mcp_server_side_sampling/__init__.py b/contributing/samples/mcp_server_side_sampling/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/mcp_server_side_sampling/__init__.py +++ b/contributing/samples/mcp_server_side_sampling/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/mcp_server_side_sampling/agent.py b/contributing/samples/mcp_server_side_sampling/agent.py index 36695f1bdf..23396d96c3 100755 --- a/contributing/samples/mcp_server_side_sampling/agent.py +++ b/contributing/samples/mcp_server_side_sampling/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/mcp_server_side_sampling/mcp_server.py b/contributing/samples/mcp_server_side_sampling/mcp_server.py index 2680c29ddd..364b8b6f4a 100644 --- a/contributing/samples/mcp_server_side_sampling/mcp_server.py +++ b/contributing/samples/mcp_server_side_sampling/mcp_server.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/mcp_service_account_agent/__init__.py b/contributing/samples/mcp_service_account_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/mcp_service_account_agent/__init__.py +++ b/contributing/samples/mcp_service_account_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/mcp_service_account_agent/agent.py b/contributing/samples/mcp_service_account_agent/agent.py index dc3ebf7b1a..975ff0ccb7 100644 --- a/contributing/samples/mcp_service_account_agent/agent.py +++ b/contributing/samples/mcp_service_account_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ SCOPES = {"https://www.googleapis.com/auth/cloud-platform": ""} root_agent = LlmAgent( - model="gemini-2.0-flash", + model="gemini-2.5-flash", name="enterprise_assistant", instruction=""" Help the user with the tools available to you. diff --git a/contributing/samples/mcp_sse_agent/__init__.py b/contributing/samples/mcp_sse_agent/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/mcp_sse_agent/__init__.py +++ b/contributing/samples/mcp_sse_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/mcp_sse_agent/agent.py b/contributing/samples/mcp_sse_agent/agent.py index 8d0980df44..8bddbca79f 100755 --- a/contributing/samples/mcp_sse_agent/agent.py +++ b/contributing/samples/mcp_sse_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ ) root_agent = LlmAgent( - model='gemini-2.0-flash', + model='gemini-2.5-flash', name='enterprise_assistant', instruction=McpInstructionProvider( connection_params=connection_params, diff --git a/contributing/samples/mcp_sse_agent/filesystem_server.py b/contributing/samples/mcp_sse_agent/filesystem_server.py index 291091e511..beddcd38ea 100644 --- a/contributing/samples/mcp_sse_agent/filesystem_server.py +++ b/contributing/samples/mcp_sse_agent/filesystem_server.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/mcp_stdio_notion_agent/README.md b/contributing/samples/mcp_stdio_notion_agent/README.md index d40df313f2..9d8a8922f2 100644 --- a/contributing/samples/mcp_stdio_notion_agent/README.md +++ b/contributing/samples/mcp_stdio_notion_agent/README.md @@ -1,6 +1,6 @@ # Notion MCP Agent -This is an agent that is using Notion MCP tool to call Notion API. And it demonstrate how to pass in the Notion API key. +This is an agent that is using Notion MCP tool to call Notion API. And it demonstrates how to pass in the Notion API key. Follow below instruction to use it: diff --git a/contributing/samples/mcp_stdio_notion_agent/__init__.py b/contributing/samples/mcp_stdio_notion_agent/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/mcp_stdio_notion_agent/__init__.py +++ b/contributing/samples/mcp_stdio_notion_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/mcp_stdio_notion_agent/agent.py b/contributing/samples/mcp_stdio_notion_agent/agent.py index bfb385a1bc..1a624f7ee1 100644 --- a/contributing/samples/mcp_stdio_notion_agent/agent.py +++ b/contributing/samples/mcp_stdio_notion_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ }) root_agent = LlmAgent( - model="gemini-2.0-flash", + model="gemini-2.5-flash", name="notion_agent", instruction=( "You are my workspace assistant. " diff --git a/contributing/samples/mcp_stdio_server_agent/__init__.py b/contributing/samples/mcp_stdio_server_agent/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/mcp_stdio_server_agent/__init__.py +++ b/contributing/samples/mcp_stdio_server_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/mcp_stdio_server_agent/agent.py b/contributing/samples/mcp_stdio_server_agent/agent.py index fe8b75c218..8b336ba281 100755 --- a/contributing/samples/mcp_stdio_server_agent/agent.py +++ b/contributing/samples/mcp_stdio_server_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ _allowed_path = os.path.dirname(os.path.abspath(__file__)) root_agent = LlmAgent( - model='gemini-2.0-flash', + model='gemini-2.5-flash', name='enterprise_assistant', instruction=f"""\ Help user accessing their file systems. diff --git a/contributing/samples/mcp_streamablehttp_agent/__init__.py b/contributing/samples/mcp_streamablehttp_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/mcp_streamablehttp_agent/__init__.py +++ b/contributing/samples/mcp_streamablehttp_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/mcp_streamablehttp_agent/agent.py b/contributing/samples/mcp_streamablehttp_agent/agent.py index f165c4c1b4..1da782d04a 100644 --- a/contributing/samples/mcp_streamablehttp_agent/agent.py +++ b/contributing/samples/mcp_streamablehttp_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ _allowed_path = os.path.dirname(os.path.abspath(__file__)) root_agent = LlmAgent( - model='gemini-2.0-flash', + model='gemini-2.5-flash', name='enterprise_assistant', instruction=f"""\ Help user accessing their file systems. diff --git a/contributing/samples/mcp_streamablehttp_agent/filesystem_server.py b/contributing/samples/mcp_streamablehttp_agent/filesystem_server.py index 9e822f232b..f8363f16b8 100644 --- a/contributing/samples/mcp_streamablehttp_agent/filesystem_server.py +++ b/contributing/samples/mcp_streamablehttp_agent/filesystem_server.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/memory/__init__.py b/contributing/samples/memory/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/memory/__init__.py +++ b/contributing/samples/memory/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/memory/agent.py b/contributing/samples/memory/agent.py index 3f415963b3..6bf843cb80 100755 --- a/contributing/samples/memory/agent.py +++ b/contributing/samples/memory/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/memory/main.py b/contributing/samples/memory/main.py index 5242d30ad4..4dc6f29dc4 100755 --- a/contributing/samples/memory/main.py +++ b/contributing/samples/memory/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/migrate_session_db/__init__.py b/contributing/samples/migrate_session_db/__init__.py index 7d5bb0b1c6..044e24d388 100644 --- a/contributing/samples/migrate_session_db/__init__.py +++ b/contributing/samples/migrate_session_db/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/migrate_session_db/agent.py b/contributing/samples/migrate_session_db/agent.py index 6caeeb1c66..f51b6deb16 100644 --- a/contributing/samples/migrate_session_db/agent.py +++ b/contributing/samples/migrate_session_db/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/migrate_session_db/main.py b/contributing/samples/migrate_session_db/main.py index 22385063af..2774440356 100644 --- a/contributing/samples/migrate_session_db/main.py +++ b/contributing/samples/migrate_session_db/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/migrate_session_db/sample-output/alembic/env.py b/contributing/samples/migrate_session_db/sample-output/alembic/env.py index 4bc5c948ea..265b528a22 100644 --- a/contributing/samples/migrate_session_db/sample-output/alembic/env.py +++ b/contributing/samples/migrate_session_db/sample-output/alembic/env.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/multi_agent_seq_config/README.md b/contributing/samples/multi_agent_seq_config/README.md index a2cd462465..af0dcee2fc 100644 --- a/contributing/samples/multi_agent_seq_config/README.md +++ b/contributing/samples/multi_agent_seq_config/README.md @@ -6,7 +6,7 @@ The whole process is: 1. An agent backed by a cheap and fast model to write initial version. 2. An agent backed by a smarter and a little more expensive to review the code. -3. An final agent backed by the smartest and slowest model to write the final revision. +3. A final agent backed by the smartest and slowest model to write the final revision. Sample queries: diff --git a/contributing/samples/multimodal_tool_results/__init__.py b/contributing/samples/multimodal_tool_results/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/multimodal_tool_results/__init__.py +++ b/contributing/samples/multimodal_tool_results/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/multimodal_tool_results/agent.py b/contributing/samples/multimodal_tool_results/agent.py index 8c66d59715..b5303f476d 100644 --- a/contributing/samples/multimodal_tool_results/agent.py +++ b/contributing/samples/multimodal_tool_results/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/non_llm_sequential/__init__.py b/contributing/samples/non_llm_sequential/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/non_llm_sequential/__init__.py +++ b/contributing/samples/non_llm_sequential/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/non_llm_sequential/agent.py b/contributing/samples/non_llm_sequential/agent.py index 8e59116b5c..52a120190b 100755 --- a/contributing/samples/non_llm_sequential/agent.py +++ b/contributing/samples/non_llm_sequential/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/oauth2_client_credentials/__init__.py b/contributing/samples/oauth2_client_credentials/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/oauth2_client_credentials/__init__.py +++ b/contributing/samples/oauth2_client_credentials/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/oauth2_client_credentials/agent.py b/contributing/samples/oauth2_client_credentials/agent.py index f0806784a9..4759fd8162 100644 --- a/contributing/samples/oauth2_client_credentials/agent.py +++ b/contributing/samples/oauth2_client_credentials/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/oauth2_client_credentials/main.py b/contributing/samples/oauth2_client_credentials/main.py index ede4b1c735..60fafc322a 100644 --- a/contributing/samples/oauth2_client_credentials/main.py +++ b/contributing/samples/oauth2_client_credentials/main.py @@ -4,7 +4,7 @@ weather assistant agent with AuthenticatedFunctionTool. """ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/oauth2_client_credentials/oauth2_test_server.py b/contributing/samples/oauth2_client_credentials/oauth2_test_server.py index ee569830a6..ee30d9f013 100644 --- a/contributing/samples/oauth2_client_credentials/oauth2_test_server.py +++ b/contributing/samples/oauth2_client_credentials/oauth2_test_server.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/oauth_calendar_agent/README.md b/contributing/samples/oauth_calendar_agent/README.md index 381bb7902b..1a580ec8ff 100644 --- a/contributing/samples/oauth_calendar_agent/README.md +++ b/contributing/samples/oauth_calendar_agent/README.md @@ -7,7 +7,7 @@ This sample tests and demos the OAuth support in ADK via two tools: * 1. list_calendar_events This is a customized tool that calls Google Calendar API to list calendar - events. It pass in the client id and client secrete to ADK and then get back + events. It passes in the client id and client secret to ADK and then get back the access token from ADK. And then it uses the access token to call calendar api. diff --git a/contributing/samples/oauth_calendar_agent/__init__.py b/contributing/samples/oauth_calendar_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/oauth_calendar_agent/__init__.py +++ b/contributing/samples/oauth_calendar_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/oauth_calendar_agent/agent.py b/contributing/samples/oauth_calendar_agent/agent.py index db24b99805..447fffd347 100644 --- a/contributing/samples/oauth_calendar_agent/agent.py +++ b/contributing/samples/oauth_calendar_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/output_schema_with_tools/__init__.py b/contributing/samples/output_schema_with_tools/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/output_schema_with_tools/__init__.py +++ b/contributing/samples/output_schema_with_tools/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/output_schema_with_tools/agent.py b/contributing/samples/output_schema_with_tools/agent.py index b523d2d7ae..f294b897f7 100644 --- a/contributing/samples/output_schema_with_tools/agent.py +++ b/contributing/samples/output_schema_with_tools/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/parallel_functions/__init__.py b/contributing/samples/parallel_functions/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/parallel_functions/__init__.py +++ b/contributing/samples/parallel_functions/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/parallel_functions/agent.py b/contributing/samples/parallel_functions/agent.py index af4cad8b40..a5443ece66 100644 --- a/contributing/samples/parallel_functions/agent.py +++ b/contributing/samples/parallel_functions/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/plugin_basic/__init__.py b/contributing/samples/plugin_basic/__init__.py index dbd8645041..9c7fdecb88 100644 --- a/contributing/samples/plugin_basic/__init__.py +++ b/contributing/samples/plugin_basic/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/plugin_basic/count_plugin.py b/contributing/samples/plugin_basic/count_plugin.py index 67ef3ea68e..dbd116de30 100644 --- a/contributing/samples/plugin_basic/count_plugin.py +++ b/contributing/samples/plugin_basic/count_plugin.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/plugin_basic/main.py b/contributing/samples/plugin_basic/main.py index 75c04d9192..df3020cc87 100644 --- a/contributing/samples/plugin_basic/main.py +++ b/contributing/samples/plugin_basic/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/plugin_reflect_tool_retry/basic/__init__.py b/contributing/samples/plugin_reflect_tool_retry/basic/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/plugin_reflect_tool_retry/basic/__init__.py +++ b/contributing/samples/plugin_reflect_tool_retry/basic/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/plugin_reflect_tool_retry/basic/agent.py b/contributing/samples/plugin_reflect_tool_retry/basic/agent.py index 65b4a3e61d..6604c07142 100644 --- a/contributing/samples/plugin_reflect_tool_retry/basic/agent.py +++ b/contributing/samples/plugin_reflect_tool_retry/basic/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/plugin_reflect_tool_retry/hallucinating_func_name/__init__.py b/contributing/samples/plugin_reflect_tool_retry/hallucinating_func_name/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/plugin_reflect_tool_retry/hallucinating_func_name/__init__.py +++ b/contributing/samples/plugin_reflect_tool_retry/hallucinating_func_name/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/plugin_reflect_tool_retry/hallucinating_func_name/agent.py b/contributing/samples/plugin_reflect_tool_retry/hallucinating_func_name/agent.py index 8a958b656a..d42acad770 100644 --- a/contributing/samples/plugin_reflect_tool_retry/hallucinating_func_name/agent.py +++ b/contributing/samples/plugin_reflect_tool_retry/hallucinating_func_name/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/pubsub/__init__.py b/contributing/samples/pubsub/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/pubsub/__init__.py +++ b/contributing/samples/pubsub/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/pubsub/agent.py b/contributing/samples/pubsub/agent.py index 923bca32ee..98434fb46c 100644 --- a/contributing/samples/pubsub/agent.py +++ b/contributing/samples/pubsub/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/pydantic_argument/__init__.py b/contributing/samples/pydantic_argument/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/pydantic_argument/__init__.py +++ b/contributing/samples/pydantic_argument/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/pydantic_argument/agent.py b/contributing/samples/pydantic_argument/agent.py index 9d29e54fa4..97a763f375 100644 --- a/contributing/samples/pydantic_argument/agent.py +++ b/contributing/samples/pydantic_argument/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/pydantic_argument/main.py b/contributing/samples/pydantic_argument/main.py index 16af323afd..5ef060378a 100644 --- a/contributing/samples/pydantic_argument/main.py +++ b/contributing/samples/pydantic_argument/main.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """Simple test script for Pydantic argument agent.""" -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/quickstart/__init__.py b/contributing/samples/quickstart/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/quickstart/__init__.py +++ b/contributing/samples/quickstart/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/quickstart/agent.py b/contributing/samples/quickstart/agent.py index f32c1e5495..46a65060af 100644 --- a/contributing/samples/quickstart/agent.py +++ b/contributing/samples/quickstart/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/rag_agent/__init__.py b/contributing/samples/rag_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/rag_agent/__init__.py +++ b/contributing/samples/rag_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/rag_agent/agent.py b/contributing/samples/rag_agent/agent.py index ca3a7e32ce..234edb64fe 100644 --- a/contributing/samples/rag_agent/agent.py +++ b/contributing/samples/rag_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/rewind_session/__init__.py b/contributing/samples/rewind_session/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/rewind_session/__init__.py +++ b/contributing/samples/rewind_session/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/rewind_session/agent.py b/contributing/samples/rewind_session/agent.py index 569bde0737..45912dfd0f 100644 --- a/contributing/samples/rewind_session/agent.py +++ b/contributing/samples/rewind_session/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/rewind_session/main.py b/contributing/samples/rewind_session/main.py index 5856b90b44..7a1cc65abf 100644 --- a/contributing/samples/rewind_session/main.py +++ b/contributing/samples/rewind_session/main.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """Simple test script for Rewind Session agent.""" -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/runner_debug_example/__init__.py b/contributing/samples/runner_debug_example/__init__.py index 1ca56dac2b..f93cbd4137 100644 --- a/contributing/samples/runner_debug_example/__init__.py +++ b/contributing/samples/runner_debug_example/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/runner_debug_example/agent.py b/contributing/samples/runner_debug_example/agent.py index 6afb4dbab7..620e1b2745 100644 --- a/contributing/samples/runner_debug_example/agent.py +++ b/contributing/samples/runner_debug_example/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/runner_debug_example/main.py b/contributing/samples/runner_debug_example/main.py index 88ee0c41cc..2fa8461f58 100644 --- a/contributing/samples/runner_debug_example/main.py +++ b/contributing/samples/runner_debug_example/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/services.py b/contributing/samples/services.py index 769a44fdd7..910682a2f8 100644 --- a/contributing/samples/services.py +++ b/contributing/samples/services.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/session_state_agent/__init__.py b/contributing/samples/session_state_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/session_state_agent/__init__.py +++ b/contributing/samples/session_state_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/session_state_agent/agent.py b/contributing/samples/session_state_agent/agent.py index a4ed704e96..478d5065d8 100644 --- a/contributing/samples/session_state_agent/agent.py +++ b/contributing/samples/session_state_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -172,7 +172,7 @@ async def after_agent_callback(callback_context: CallbackContext): 'Log all users query with `log_query` tool. Must always remind user you' ' cannot answer second query because your setup.' ), - model='gemini-2.0-flash-001', + model='gemini-2.5-flash', before_agent_callback=before_agent_callback, before_model_callback=before_model_callback, after_model_callback=after_model_callback, diff --git a/contributing/samples/simple_sequential_agent/__init__.py b/contributing/samples/simple_sequential_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/simple_sequential_agent/__init__.py +++ b/contributing/samples/simple_sequential_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/simple_sequential_agent/agent.py b/contributing/samples/simple_sequential_agent/agent.py index 9ec0b35a95..52b2615a63 100644 --- a/contributing/samples/simple_sequential_agent/agent.py +++ b/contributing/samples/simple_sequential_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/spanner/__init__.py b/contributing/samples/spanner/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/spanner/__init__.py +++ b/contributing/samples/spanner/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/spanner/agent.py b/contributing/samples/spanner/agent.py index 065cf02759..36dde57260 100644 --- a/contributing/samples/spanner/agent.py +++ b/contributing/samples/spanner/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/spanner_rag_agent/README.md b/contributing/samples/spanner_rag_agent/README.md index 99b60794fe..08d134b990 100644 --- a/contributing/samples/spanner_rag_agent/README.md +++ b/contributing/samples/spanner_rag_agent/README.md @@ -181,7 +181,7 @@ type. ## 💬 Sample prompts -* I'd like to buy a starter bike for my 3 year old child, can you show me the recommendation? +* I'd like to buy a starter bike for my 3-year-old child, can you show me the recommendation? ![Spanner RAG Sample Agent](Spanner_RAG_Sample_Agent.png) diff --git a/contributing/samples/spanner_rag_agent/__init__.py b/contributing/samples/spanner_rag_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/spanner_rag_agent/__init__.py +++ b/contributing/samples/spanner_rag_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/spanner_rag_agent/agent.py b/contributing/samples/spanner_rag_agent/agent.py index 1460242184..cd479c0caf 100644 --- a/contributing/samples/spanner_rag_agent/agent.py +++ b/contributing/samples/spanner_rag_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/static_instruction/__init__.py b/contributing/samples/static_instruction/__init__.py index e0517c644c..6dba177733 100644 --- a/contributing/samples/static_instruction/__init__.py +++ b/contributing/samples/static_instruction/__init__.py @@ -10,7 +10,7 @@ - Performance benefits of context caching """ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/static_instruction/agent.py b/contributing/samples/static_instruction/agent.py index efe17d409c..6715a29a0c 100644 --- a/contributing/samples/static_instruction/agent.py +++ b/contributing/samples/static_instruction/agent.py @@ -4,7 +4,7 @@ pet that has different moods based on feeding time stored in session state. """ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/static_instruction/main.py b/contributing/samples/static_instruction/main.py index 4dae14e86e..328ebee25a 100644 --- a/contributing/samples/static_instruction/main.py +++ b/contributing/samples/static_instruction/main.py @@ -4,7 +4,7 @@ that has different moods based on feeding time stored in session state. """ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/static_non_text_content/__init__.py b/contributing/samples/static_non_text_content/__init__.py index 2192c5ee2a..330541afc6 100644 --- a/contributing/samples/static_non_text_content/__init__.py +++ b/contributing/samples/static_non_text_content/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/static_non_text_content/agent.py b/contributing/samples/static_non_text_content/agent.py index 58869155a3..e3c69f6fbb 100644 --- a/contributing/samples/static_non_text_content/agent.py +++ b/contributing/samples/static_non_text_content/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/static_non_text_content/main.py b/contributing/samples/static_non_text_content/main.py index 1c9301c49a..d3835b2205 100644 --- a/contributing/samples/static_non_text_content/main.py +++ b/contributing/samples/static_non_text_content/main.py @@ -1,6 +1,6 @@ """Static non-text content sample agent main script.""" -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/sub_agents_config/__init__.py b/contributing/samples/sub_agents_config/__init__.py index 0a2669d7a2..58d482ea38 100644 --- a/contributing/samples/sub_agents_config/__init__.py +++ b/contributing/samples/sub_agents_config/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/sub_agents_config/life_agent.py b/contributing/samples/sub_agents_config/life_agent.py index 8c7bbb1bac..90e74803bd 100644 --- a/contributing/samples/sub_agents_config/life_agent.py +++ b/contributing/samples/sub_agents_config/life_agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/telemetry/agent.py b/contributing/samples/telemetry/agent.py index a9db434b6c..257d28ab8c 100755 --- a/contributing/samples/telemetry/agent.py +++ b/contributing/samples/telemetry/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/telemetry/main.py b/contributing/samples/telemetry/main.py index c6e05f0f62..885dc6489f 100755 --- a/contributing/samples/telemetry/main.py +++ b/contributing/samples/telemetry/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/token_usage/__init__.py b/contributing/samples/token_usage/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/token_usage/__init__.py +++ b/contributing/samples/token_usage/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/token_usage/agent.py b/contributing/samples/token_usage/agent.py index a73f9e7638..aef598735d 100755 --- a/contributing/samples/token_usage/agent.py +++ b/contributing/samples/token_usage/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/token_usage/main.py b/contributing/samples/token_usage/main.py index 2845498946..e9025992ad 100755 --- a/contributing/samples/token_usage/main.py +++ b/contributing/samples/token_usage/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/tool_functions_config/__init__.py b/contributing/samples/tool_functions_config/__init__.py index 0a2669d7a2..58d482ea38 100644 --- a/contributing/samples/tool_functions_config/__init__.py +++ b/contributing/samples/tool_functions_config/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/tool_functions_config/tools.py b/contributing/samples/tool_functions_config/tools.py index 410a96e3a8..f5cc9f8f45 100644 --- a/contributing/samples/tool_functions_config/tools.py +++ b/contributing/samples/tool_functions_config/tools.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/tool_human_in_the_loop_config/__init__.py b/contributing/samples/tool_human_in_the_loop_config/__init__.py index 0a2669d7a2..58d482ea38 100644 --- a/contributing/samples/tool_human_in_the_loop_config/__init__.py +++ b/contributing/samples/tool_human_in_the_loop_config/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/tool_human_in_the_loop_config/tools.py b/contributing/samples/tool_human_in_the_loop_config/tools.py index 9ad472a4c8..d9dea82686 100644 --- a/contributing/samples/tool_human_in_the_loop_config/tools.py +++ b/contributing/samples/tool_human_in_the_loop_config/tools.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/toolbox_agent/README.md b/contributing/samples/toolbox_agent/README.md index 1c94731ac5..56a4fe089e 100644 --- a/contributing/samples/toolbox_agent/README.md +++ b/contributing/samples/toolbox_agent/README.md @@ -26,10 +26,10 @@ Install SQLite from [https://sqlite.org/](https://sqlite.org/) ### 3. Install Required Python Dependencies -**Important**: The ADK's `ToolboxToolset` class requires the `toolbox-core` package, which is not automatically installed with the ADK. Install it using: +**Important**: The ADK's `ToolboxToolset` class requires the `toolbox-adk` package, which is not automatically installed with the ADK. Install it using: ```bash -pip install toolbox-core +pip install google-adk[toolbox] ``` ### 4. Create Database (Optional) diff --git a/contributing/samples/toolbox_agent/__init__.py b/contributing/samples/toolbox_agent/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/toolbox_agent/__init__.py +++ b/contributing/samples/toolbox_agent/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/toolbox_agent/agent.py b/contributing/samples/toolbox_agent/agent.py index cfbb8a9c11..55c1eb7f72 100644 --- a/contributing/samples/toolbox_agent/agent.py +++ b/contributing/samples/toolbox_agent/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/toolbox_agent/tools.yaml b/contributing/samples/toolbox_agent/tools.yaml index f9f8522eeb..9d953fe0e5 100644 --- a/contributing/samples/toolbox_agent/tools.yaml +++ b/contributing/samples/toolbox_agent/tools.yaml @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/vertex_code_execution/__init__.py b/contributing/samples/vertex_code_execution/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/vertex_code_execution/__init__.py +++ b/contributing/samples/vertex_code_execution/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/vertex_code_execution/agent.py b/contributing/samples/vertex_code_execution/agent.py index 89838f5c99..79e5a03d1b 100644 --- a/contributing/samples/vertex_code_execution/agent.py +++ b/contributing/samples/vertex_code_execution/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/workflow_agent_seq/__init__.py b/contributing/samples/workflow_agent_seq/__init__.py index c48963cdc7..4015e47d6e 100644 --- a/contributing/samples/workflow_agent_seq/__init__.py +++ b/contributing/samples/workflow_agent_seq/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/workflow_agent_seq/agent.py b/contributing/samples/workflow_agent_seq/agent.py index 4d9ccef25c..5e26c20d62 100644 --- a/contributing/samples/workflow_agent_seq/agent.py +++ b/contributing/samples/workflow_agent_seq/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/workflow_agent_seq/main.py b/contributing/samples/workflow_agent_seq/main.py index 9ea689a132..7373508cbb 100644 --- a/contributing/samples/workflow_agent_seq/main.py +++ b/contributing/samples/workflow_agent_seq/main.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/workflow_triage/__init__.py b/contributing/samples/workflow_triage/__init__.py index c48963cdc7..4015e47d6e 100755 --- a/contributing/samples/workflow_triage/__init__.py +++ b/contributing/samples/workflow_triage/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/workflow_triage/agent.py b/contributing/samples/workflow_triage/agent.py index b39e86eb87..9b0cc66943 100755 --- a/contributing/samples/workflow_triage/agent.py +++ b/contributing/samples/workflow_triage/agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/contributing/samples/workflow_triage/execution_agent.py b/contributing/samples/workflow_triage/execution_agent.py index 2f3f1140bd..ca97939d56 100644 --- a/contributing/samples/workflow_triage/execution_agent.py +++ b/contributing/samples/workflow_triage/execution_agent.py @@ -1,4 +1,4 @@ -# Copyright 2025 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/llms-full.txt b/llms-full.txt index b84e9496ee..52b9121f15 100644 --- a/llms-full.txt +++ b/llms-full.txt @@ -567,7 +567,7 @@ Finally, you instantiate your `StoryFlowAgent` and use the `Runner` as usual. ```python # Full runnable code for the StoryFlowAgent example - # Copyright 2025 Google LLC + # Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -3704,7 +3704,7 @@ When the ADK framework encounters a point where a callback can run (e.g., just b This example demonstrates the common pattern for a guardrail using `before_model_callback`.