diff --git a/.github/.release-please-manifest.json b/.github/.release-please-manifest.json index 84541506fb6..7731f20ec86 100644 --- a/.github/.release-please-manifest.json +++ b/.github/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.15.1" + ".": "2.16.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 00053f47b20..1d3f13abcd3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,87 @@ # Changelog +## [2.16.0](https://github.com/google/adk-python/compare/v2.15.1...v2.16.0) (2026-12-03) + +### Highlights + +This release adds grounding verification and multi-objective agent optimization, introduces Gemini Decisions API classification and Markdown skill loading, opens compatibility with `google-genai` 3.x, promotes Eventarc tools to stable, and hardens remote sandboxes and the default A2A task store. + +* **`GroundingPlugin`**: Verify agent responses against session- and turn-scoped facts (with optional `agent_names` filtering) using the experimental `GroundingPlugin`. See the [unit guide](https://github.com/google/adk-python/blob/main/docs/guides/integrations/discovery_engine/grounding_plugin/index.md) for more details. ([9efe125](https://github.com/google/adk-python/commit/9efe1252791a76a0eaaa60e72af1c3b2046fa581), [8f4e747](https://github.com/google/adk-python/commit/8f4e7474872917114040b9fe0a40901f3356024a)) +* **`GridSearchAgentOptimizer`**: Sweep dotted parameter overrides across agent trees and score candidates on multiple objectives with `GridSearchAgentOptimizer` and `clone_agent_with_params`. See the [unit guide](https://github.com/google/adk-python/blob/main/docs/guides/optimization/agent_optimizer/index.md) for more details. ([276b7e0](https://github.com/google/adk-python/commit/276b7e0e65feb2f31001882702ef476126af34e0), [d723cb8](https://github.com/google/adk-python/commit/d723cb87b9051d451e7c67d8ea20fe0f6b42be80)) +* **`GeminiDecisionsClassifier`**: Route workflows and tool gates through the Gemini Decisions API with `GeminiDecisionsClassifier` (now the default in classifier samples). See the [unit guide](https://github.com/google/adk-python/blob/main/docs/guides/labs/classifiers/gemini_decisions_classifier/index.md) for more details. ([b4ae4fb](https://github.com/google/adk-python/commit/b4ae4fb8dde4fb45644b0a02a455a9ab94b14df0), [5697bbd](https://github.com/google/adk-python/commit/5697bbd80a05868f60754307b728345552ec5835)) +* **Skills, integrations, and dependencies**: Build skills directly from Markdown text with `load_skill_from_markdown` (see the [unit guide](https://github.com/google/adk-python/blob/main/docs/guides/skills/skill/index.md) for more details), promote `EventarcToolset` and `EventarcToolConfig` to stable, support Azure artifact metadata in `FsspecArtifactService`, and allow `google-genai` 3.x (`<4`). ([6686413](https://github.com/google/adk-python/commit/6686413c26490e67c7200d4908e6cea6ff995aad), [e357631](https://github.com/google/adk-python/commit/e357631427bfe8b354a3a992dbe4233681b15714), [481e1b2](https://github.com/google/adk-python/commit/481e1b2f15440743a61ccf36bcbcdba12d5949be), [163bfc0](https://github.com/google/adk-python/commit/163bfc0681fde974bb58d4f1d5274697d574bb34)) +* **Workflow retries and security hardening**: Retry failed static `Workflow` children in place without cancelling running siblings (see the [unit guide](https://github.com/google/adk-python/blob/main/docs/guides/workflow/retry_config/index.md) for more details), bound and user-scope the default in-memory A2A task store, reject workspace-escaping paths in remote sandbox environments, and add `SECURITY.md`. ([f04b5fe](https://github.com/google/adk-python/commit/f04b5fe424dbe2c8368682b54bc40ba070a0148d), [a492932](https://github.com/google/adk-python/commit/a4929329cdcbb9d3a5224425cbe2aaf6dfd86ee1), [b72f466](https://github.com/google/adk-python/commit/b72f46698c41d43d4fa552e4ecf35aa85e72725b), [740eacc](https://github.com/google/adk-python/commit/740eacc9ddda569c7e66f6f477311395784e4488)) + +#### Breaking changes + +* **`Workflow.retry_config` is frozen and child policies replace parent fallback**: Assigning `retry_config` on a `Workflow` after construction (including in `model_post_init`) now raises `pydantic.ValidationError`; pass `Workflow(..., retry_config=...)` or `node(workflow, retry_config=...)` instead. A child's own `retry_config` now replaces `Workflow.retry_config` for that child rather than falling back to a whole-workflow retry. ([f04b5fe](https://github.com/google/adk-python/commit/f04b5fe424dbe2c8368682b54bc40ba070a0148d)) + +#### Behavior changes + +* **Default in-memory A2A task store bounds and user scoping**: The default task store in `to_a2a` and `get_fast_api_app(a2a=True)` now drops finished tasks after 1 hour (capped at 10,000 tasks) and scopes authenticated tasks to their creator; pass an explicit `task_store` or `task_store_uri` if you need cross-user lookup or longer retention. ([a492932](https://github.com/google/adk-python/commit/a4929329cdcbb9d3a5224425cbe2aaf6dfd86ee1)) +* **Remote sandbox workspace path validation**: `read_file`, `read_file_stream`, and `write_file` on `DaytonaEnvironment`, `E2BEnvironment`, `OpenSandboxEnvironment`, and `AgentEngineEnvironment` now raise `ValueError` for relative or workspace-prefixed paths escaping the workspace root via `..` (pass an explicit outer absolute path instead); `EditFileTool` returns an error dict on `ValueError` instead of raising. ([b72f466](https://github.com/google/adk-python/commit/b72f46698c41d43d4fa552e4ecf35aa85e72725b)) +* **Live `before_model_callback` isolation**: In live runs, a `before_model_callback`'s in-place edits to the request config and tools are discarded; configure them on the agent instead. ([17c4a10](https://github.com/google/adk-python/commit/17c4a10afb604e11f92ca04c99d1cab6a90cd6cb)) + +
+All changes + +### Features + +* add GroundingPlugin for grounding verification ([9efe125](https://github.com/google/adk-python/commit/9efe1252791a76a0eaaa60e72af1c3b2046fa581)) +* **artifacts:** support artifact metadata on Azure in FsspecArtifactService ([481e1b2](https://github.com/google/adk-python/commit/481e1b2f15440743a61ccf36bcbcdba12d5949be)) +* **classifiers:** add GeminiDecisionsClassifier for the Gemini Decisions API ([b4ae4fb](https://github.com/google/adk-python/commit/b4ae4fb8dde4fb45644b0a02a455a9ab94b14df0)) +* **cli:** warn on duplicate Agent Engine display name and add --update_if_exists ([84cb074](https://github.com/google/adk-python/commit/84cb0742bcd5921efc585dff7c1ae86063702f81)) +* **features:** promote the Eventarc toolset and its config to stable ([e357631](https://github.com/google/adk-python/commit/e357631427bfe8b354a3a992dbe4233681b15714)) +* **integrations:** add session and turn scoped facts and agent_names to the experimental GroundingPlugin ([8f4e747](https://github.com/google/adk-python/commit/8f4e7474872917114040b9fe0a40901f3356024a)) +* **optimization:** add agent tree cloner for dotted parameter overrides ([d723cb8](https://github.com/google/adk-python/commit/d723cb87b9051d451e7c67d8ea20fe0f6b42be80)) +* **optimization:** add multi-objective GridSearchAgentOptimizer ([276b7e0](https://github.com/google/adk-python/commit/276b7e0e65feb2f31001882702ef476126af34e0)) +* **skills:** add load_skill_from_markdown to build a skill from SKILL.md text ([6686413](https://github.com/google/adk-python/commit/6686413c26490e67c7200d4908e6cea6ff995aad)) +* **telemetry:** record gen_ai.client.inference.duration ([8d064dc](https://github.com/google/adk-python/commit/8d064dc91612805805fd8e2e281c8b86f503e37f)) +* **telemetry:** support experimental reasoning parts in gen_ai messages ([0019b86](https://github.com/google/adk-python/commit/0019b8658cbd3fae9c6e151889f6f203c404fc34)) + + +### Bug Fixes + +* **a2a:** propagate CancelledError raised inside runner.run_async ([5096169](https://github.com/google/adk-python/commit/50961696a49750c1bff354c9406c455778c2a166)) +* allow google-genai 3 ([163bfc0](https://github.com/google/adk-python/commit/163bfc0681fde974bb58d4f1d5274697d574bb34)) +* **artifacts:** preserve display names for URI-backed artifacts ([6700fc9](https://github.com/google/adk-python/commit/6700fc9cc2e3b017e585e9fb6cbd253d568d7c9f)) +* **artifacts:** tighten S3 metadata checks in FsspecArtifactService ([4d9e2c7](https://github.com/google/adk-python/commit/4d9e2c75f92305b335f8e66f8b4a8ea99f13017f)) +* **compaction:** use initial_prompt_token_count for token-threshold checks ([9f0ed1f](https://github.com/google/adk-python/commit/9f0ed1f8316627df29903ce64553f4ca8f0bfd2a)) +* copy the request config and tools when screening live user input ([17c4a10](https://github.com/google/adk-python/commit/17c4a10afb604e11f92ca04c99d1cab6a90cd6cb)) +* **eval:** count capitalized and multi-word judge verdicts in final_response_match_v2 ([f9c5331](https://github.com/google/adk-python/commit/f9c5331fbc5bfb86cdbdfa2ed4f88ba62e1c49f8)) +* **eval:** stop detail printing from discarding the eval result ([0cbbe7c](https://github.com/google/adk-python/commit/0cbbe7ca4bcfe4b91391e7a63e7d75855c25deca)), closes [#8149](https://github.com/google/adk-python/issues/8149) +* **eval:** stop failing Thai, Lao, Khmer and Myanmar answers with digits ([a60ed1b](https://github.com/google/adk-python/commit/a60ed1b2455d0f24b266c8010ecbd02ee666e07a)) +* keep a langchain tool's name and description in from_config ([f578fcd](https://github.com/google/adk-python/commit/f578fcd2dbf6bf7304d32c7d548b0d2f466ab747)), closes [#7900](https://github.com/google/adk-python/issues/7900) +* keep ModelArmorPlugin's shared client open on runner close ([bee78e7](https://github.com/google/adk-python/commit/bee78e7ce1bc1bfd16cccb0d0f8190ca6d401871)), closes [#8066](https://github.com/google/adk-python/issues/8066) +* limit the default A2A task store and scope tasks to their creator ([a492932](https://github.com/google/adk-python/commit/a4929329cdcbb9d3a5224425cbe2aaf6dfd86ee1)) +* match BigQuery schema case-insensitively and harden write retries ([f5ace77](https://github.com/google/adk-python/commit/f5ace77fffe140acdf4ccf3add19d03503ac909a)) +* **plugins:** add tiebreakers and SessionRollup root_agent in BQAA eval SQL ([851b770](https://github.com/google/adk-python/commit/851b7707ad0af9d6ee248a70f836a1388f501281)) +* **plugins:** expose lazy exports in dir() for Sphinx docs ([9fd6b33](https://github.com/google/adk-python/commit/9fd6b330e6cd5d02bd3604d8e8a31fced17b0286)) +* **plugins:** keep secret_key and passwd args out of tracing spans ([e3dbdc1](https://github.com/google/adk-python/commit/e3dbdc1726bed0bfc3d2e3f335fc7c0dcdf6b9c5)) +* **plugins:** pair transfer_to_agent calls with empty function_response ([8fe561f](https://github.com/google/adk-python/commit/8fe561f577d585e6d69ac88efb3ec17000e1ea8f)) +* **plugins:** resolve per-turn scoped_system_prompt in BQAA eval SQL ([3e322e9](https://github.com/google/adk-python/commit/3e322e9a988d6360508e7f6c9fa68983741bea23)) +* **plugins:** use text_summary for custom non-inline BQAA user messages ([7d7a275](https://github.com/google/adk-python/commit/7d7a275d11008c0e0c94e4ab15c5ea284d1b8a59)) +* preserve empty-text signed thinking blocks in LiteLlm ([cd867da](https://github.com/google/adk-python/commit/cd867daa9b817967f5276dbba51a61062ba2e2fc)) +* reject paths that escape remote sandbox workspaces ([b72f466](https://github.com/google/adk-python/commit/b72f46698c41d43d4fa552e4ecf35aa85e72725b)), closes [#7699](https://github.com/google/adk-python/issues/7699) +* save each image of a code execution response as its own artifact ([3b4c72e](https://github.com/google/adk-python/commit/3b4c72e99f5c81638fd9204624e68f23b6d4adc0)) +* **telemetry:** record a Gemini inference once when the google-genai instrumentor is installed ([8c0d2f8](https://github.com/google/adk-python/commit/8c0d2f88064dc4f4661a02accb01fe4fb6c25efa)) +* **telemetry:** record invocation_id on workflow and node spans ([b1566b8](https://github.com/google/adk-python/commit/b1566b855e2f17926b2f91576c1a9fbade28d5a4)) +* **workflow:** retry a failed workflow child in place ([f04b5fe](https://github.com/google/adk-python/commit/f04b5fe424dbe2c8368682b54bc40ba070a0148d)) + + +### Performance Improvements + +* **telemetry:** skip serializing request history when content capture is off ([825a44c](https://github.com/google/adk-python/commit/825a44c5dfb72cd14d5d037a8f42a27c7bf62292)) + + +### Documentation + +* add SECURITY.md with the ADK threat model, scope, and hardening guidance ([740eacc](https://github.com/google/adk-python/commit/740eacc9ddda569c7e66f6f477311395784e4488)) +* **classifiers:** default classifier samples to GeminiDecisionsClassifier ([5697bbd](https://github.com/google/adk-python/commit/5697bbd80a05868f60754307b728345552ec5835)) +* **skills:** update the bigquery-ai-ml skill ([36873b3](https://github.com/google/adk-python/commit/36873b39e918038814f7ad615868f471541d269d)) + +
+ ## [2.15.1](https://github.com/google/adk-python/compare/v2.15.0...v2.15.1) (2026-11-24) diff --git a/src/google/adk/version.py b/src/google/adk/version.py index 463329d8b68..b50e5a22a32 100644 --- a/src/google/adk/version.py +++ b/src/google/adk/version.py @@ -13,4 +13,4 @@ # limitations under the License. # version: major.minor.patch -__version__ = "2.15.1" +__version__ = "2.16.0"