2.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 optionalagent_namesfiltering) using the experimentalGroundingPlugin. See the unit guide for more details. (9efe125, 8f4e747)GridSearchAgentOptimizer: Sweep dotted parameter overrides across agent trees and score candidates on multiple objectives withGridSearchAgentOptimizerandclone_agent_with_params. See the unit guide for more details. (276b7e0, d723cb8)GeminiDecisionsClassifier: Route workflows and tool gates through the Gemini Decisions API withGeminiDecisionsClassifier(now the default in classifier samples). See the unit guide for more details. (b4ae4fb, 5697bbd)- Skills, integrations, and dependencies: Build skills directly from Markdown text with
load_skill_from_markdown(see the unit guide for more details), promoteEventarcToolsetandEventarcToolConfigto stable, support Azure artifact metadata inFsspecArtifactService, and allowgoogle-genai3.x (<4). (6686413, e357631, 481e1b2, 163bfc0) - Workflow retries and security hardening: Retry failed static
Workflowchildren in place without cancelling running siblings (see the unit guide for more details), bound and user-scope the default in-memory A2A task store, reject workspace-escaping paths in remote sandbox environments, and addSECURITY.md. (f04b5fe, a492932, b72f466, 740eacc)
Breaking changes
Workflow.retry_configis frozen and child policies replace parent fallback: Assigningretry_configon aWorkflowafter construction (including inmodel_post_init) now raisespydantic.ValidationError; passWorkflow(..., retry_config=...)ornode(workflow, retry_config=...)instead. A child's ownretry_confignow replacesWorkflow.retry_configfor that child rather than falling back to a whole-workflow retry. (f04b5fe)
Behavior changes
- Default in-memory A2A task store bounds and user scoping: The default task store in
to_a2aandget_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 explicittask_storeortask_store_uriif you need cross-user lookup or longer retention. (a492932) - Remote sandbox workspace path validation:
read_file,read_file_stream, andwrite_fileonDaytonaEnvironment,E2BEnvironment,OpenSandboxEnvironment, andAgentEngineEnvironmentnow raiseValueErrorfor relative or workspace-prefixed paths escaping the workspace root via..(pass an explicit outer absolute path instead);EditFileToolreturns an error dict onValueErrorinstead of raising. (b72f466) - Live
before_model_callbackisolation: In live runs, abefore_model_callback's in-place edits to the request config and tools are discarded; configure them on the agent instead. (17c4a10)
All changes
Features
- add GroundingPlugin for grounding verification (9efe125)
- artifacts: support artifact metadata on Azure in FsspecArtifactService (481e1b2)
- classifiers: add GeminiDecisionsClassifier for the Gemini Decisions API (b4ae4fb)
- cli: warn on duplicate Agent Engine display name and add --update_if_exists (84cb074)
- features: promote the Eventarc toolset and its config to stable (e357631)
- integrations: add session and turn scoped facts and agent_names to the experimental GroundingPlugin (8f4e747)
- optimization: add agent tree cloner for dotted parameter overrides (d723cb8)
- optimization: add multi-objective GridSearchAgentOptimizer (276b7e0)
- skills: add load_skill_from_markdown to build a skill from SKILL.md text (6686413)
- telemetry: record gen_ai.client.inference.duration (8d064dc)
- telemetry: support experimental reasoning parts in gen_ai messages (0019b86)
Bug Fixes
- a2a: propagate CancelledError raised inside runner.run_async (5096169)
- allow google-genai 3 (163bfc0)
- artifacts: preserve display names for URI-backed artifacts (6700fc9)
- artifacts: tighten S3 metadata checks in FsspecArtifactService (4d9e2c7)
- compaction: use initial_prompt_token_count for token-threshold checks (9f0ed1f)
- copy the request config and tools when screening live user input (17c4a10)
- eval: count capitalized and multi-word judge verdicts in final_response_match_v2 (f9c5331)
- eval: stop detail printing from discarding the eval result (0cbbe7c), closes #8149
- eval: stop failing Thai, Lao, Khmer and Myanmar answers with digits (a60ed1b)
- keep a langchain tool's name and description in from_config (f578fcd), closes #7900
- keep ModelArmorPlugin's shared client open on runner close (bee78e7), closes #8066
- limit the default A2A task store and scope tasks to their creator (a492932)
- match BigQuery schema case-insensitively and harden write retries (f5ace77)
- plugins: add tiebreakers and SessionRollup root_agent in BQAA eval SQL (851b770)
- plugins: expose lazy exports in dir() for Sphinx docs (9fd6b33)
- plugins: keep secret_key and passwd args out of tracing spans (e3dbdc1)
- plugins: pair transfer_to_agent calls with empty function_response (8fe561f)
- plugins: resolve per-turn scoped_system_prompt in BQAA eval SQL (3e322e9)
- plugins: use text_summary for custom non-inline BQAA user messages (7d7a275)
- preserve empty-text signed thinking blocks in LiteLlm (cd867da)
- reject paths that escape remote sandbox workspaces (b72f466), closes #7699
- save each image of a code execution response as its own artifact (3b4c72e)
- telemetry: record a Gemini inference once when the google-genai instrumentor is installed (8c0d2f8)
- telemetry: record invocation_id on workflow and node spans (b1566b8)
- workflow: retry a failed workflow child in place (f04b5fe)
Performance Improvements
- telemetry: skip serializing request history when content capture is off (825a44c)