pypi / google-adk
google-adk
What changed in google-adk 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
27 breaking23 security1 deprecations74 new APIs and options6 performance36 behavior and defaults6 tooling68 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initgoogle-adk 2198 changes
Breaking changes 27
Restrict mutating /dev and agent builder endpoints to local clients by default, and only enable built-in agents when bound to loopback.
Parallel agent_states are now isolated by node_path.
Initial routing now uses card descriptions.
Require an OIDC audience when trigger endpoints are enabled.
Nodes marked rerun_on_resume are rerun after interrupts are resolved, waiting for all direct interrupts before rerunning.
Single-turn workflow node events and contents are now isolated by node path.
Tool nodes pause for user approval instead of passing an error downstream.
Path parameters containing '.' or '..' segments are now rejected.
The endpoint now cancels the run when the client disconnects.
VIDEO live sessions now default to a pre-built avatar.
Raises ValueError when no evaluation cases are evaluated instead of passing.
Keeps its BigQuery session in process memory rather than session state, so temporary tables do not survive restarts or carry over to another replica.
Runs a non-SELECT statement only when its dry run places it in the session's anonymous dataset; statements with no destination are rejected.
Leaves ${var} and backslash-escaped \{var} patterns unchanged instead of filling them from state.
Dynamic run_node calls isolate peer task-mode agents.
A streamed model call is traced once instead of once per chunk.
OpenAIResponsesLlm ignores thinking_config settings and warns; use OpenAIGenerateContentConfig.effort instead.
OpenAILlm now honors tool_config mode and all tool declarations.
Non-loopback agent card URLs must use HTTPS.
Appending an event to a session the service does not hold now raises SessionNotFoundError instead of accepting and discarding the event.
GCS tools restrict local file reads and writes to the configured root and refuse local file access when the setting is absent.
Tool callback chains now end on the first non-None result.
A failed node runs again when the workflow resumes instead of replaying as completed; make node bodies idempotent because external side effects may happen again.
YAML and ruamel deserialization are blocked in agent-config code references.
RemoteA2aAgent no longer forwards credential requests to the remote peer.
Agent errors are re-raised from the synchronous run method.
Tool confirmations arriving over A2A are rejected.
Security 17
Encrypt Google credentials stored in sessions.
Prevent OAuth2 secrets from leaking through run, websocket, dev server, and session endpoints.
Require human confirmation before executing workflow nodes; confirmed tools run once per approval.
Instructions are rendered in a sandbox and given a read-only state mapping.
The proxy path now applies load_web_page SSRF checks.
Attaches application default credentials only over HTTPS.
MCP attaches application default credentials only to Google API hosts.
GCS tool local file access is confined to the configured root, and paths are judged by where they resolve.
Stops sending the OAuth client secret to the client.
Agent transfers are restricted to declared transfer targets; transfers to forbidden parent or peer agents are refused.
State deltas are sanitized before they are written to JSON state columns.
BigQuery tools guard against SQL injection vulnerabilities.
Credentials are redacted from the plugin's output file.
Credentials are redacted from this field in debug logs.
Workflows are protected against prompt injection through GitHub event data.
Legacy v0 session event actions are loaded with a restricted unpickler.
File payloads are kept out of the debug log line.
Deprecations 1
Use this module instead of the legacy live-audio modules under google.adk.flows.llm_flows, which now emit DeprecationWarning on import.
New APIs and options 71
Intercept and filter tool outputs before they are returned to the model.
Add skill-level security support when building agent cards.
Add schema error and schema ready callback hooks to BigQueryLoggerConfig.
Deploy agents to Agent Engine using dedicated custom service accounts.
Resume Gemini generations that were paused with a continuation token.
retry_config is now supported for dynamic node failures in NodeRunner.
Persist outputs from skill scripts as artifacts.
Add a state-file option to
adk run.Pass abort_signal to Runner, Workflow, and nodes to stop a run gracefully.
Server commands now accept avatar configuration.
The data agent toolset function now supports pagination.
Server commands now support setting a maximum number of LLM calls.
An opt-in path allows connections to MCP servers over the modern protocol.
Lets an agent consult another model mid-task, with per-turn and per-session budgets.
Selects the built-in SQLite memory service for keeping agent memory in a local SQLite database.
Adds an optional plugin for tool-call integrity.
Opts in to validation and coercion of function tool argument types when set to 1.
Enables experimental skill lifecycle management, including lifecycle modes, active-skill limits, and unloading skills.
Exposes session options through the REST endpoint.
Adds name-based request processor helpers.
Adds a field to control Live non-blocking function calls.
Adds default_project_id and default_dataset_id fields to BigQueryToolConfig.
Adds an evaluation metric for tracking duration.
Adds an experimental skill lifecycle that lasts one turn.
Adds an OpenAI integration extra for installing the OpenAI-related dependencies.
OpenAI models move to this module; google.adk.labs.openai continues to re-export them.
Adds token-consumption and model-call-count metrics to evaluation.
Adds abort signal primitives; the Runner and workflows do not act on an abort yet.
Adds MongoDB tools for vector and hybrid search within agent flows.
Adds an on_error handler to skill listing functions.
Adds OpenAI generation configuration, including per-model reasoning effort; use its effort setting instead of thinking_config with OpenAIResponsesLlm.
Adds api_key and base_url configuration with per-request key resolution, adapts parameters for reasoning models, and reports reasoning tokens on Chat Completions.
Supports OpenAPI basic authentication.
Adds an optional context_builder.
Exposes the serving tier through RunConfig and sends deferred service tier on interactions API requests.
Controls how the skill catalog is disclosed.
Adds programmatic skill activation, lifecycle modes, an active-skill cap, and an opt-in unload_skill tool; lifecycle features are experimental and off by default.
State supports key iteration.
OpenAILlm surfaces streaming usage and finish reason.
Allows experimental telemetry to be enabled per feature.
Claude adaptive thinking tasks now request visible thoughts, allowing developers to access the models’ step-by-step reasoning process.
Adds automatic failover between models when the primary model encounters errors, helping safeguard agent uptime.
Adds a method to retrieve an authenticated URL for a GCS artifact.
Adds a method to retrieve a signed URL for a GCS artifact.
Adds an option to tool trajectory evaluation.
Adds a runner for building voice and telephony agents using LiveKit.
Adds support for MCP SDK 2.x while retaining backward compatibility with 1.x servers.
MCP integration now supports SDK 2.x alongside 1.x.
Adds optional OIDC verification for Pub/Sub and Eventarc triggers.
Adds transfer_reason to help prevent agent transfer loops.
ADK 2.0 graph workflows can now be authored and loaded from declarative YAML configurations.
Opt in to experimental token-spend and workflow inference and tool-call telemetry with this environment variable.
Set this environment variable to configure the maximum LLM calls limit.
AgentEvaluator supports custom metrics.
Agent Engine deploy supports Cloud Build worker pools.
The data_agent toolset adds a tool for creating data agents.
Custom LLM clients can be injected into Gemini and AnthropicLlm.
The data_agent toolset adds a tool for deleting data agents.
Live interaction_status is surfaced on LlmResponse and Event.
This tool accepts a location parameter.
A live streaming tool can send messages directly to the user.
A Model Armor guardrail plugin is available.
The plugin supports opt-in session retention.
RemoteA2aAgent supports native task mode.
RemoteA2aAgent supports auth_scheme and auth_credential.
Opt in to experimental telemetry with this RunConfig field.
Streaming tools can set response scheduling separately for each yield.
The data_agent toolset adds a tool for updating data agents.
Developers can configure the Vertex AI API version.
Vertex Memory Bank supports memory_id and allowed_topics.
VIDEO is now an allowed modality in the ADK API server.
Performance 6
Unused providers are no longer imported on the first LLM request.
Time to first model request is cut by 40% in long sessions.
Time to the first model request in long sessions is reduced by 40%.
Imports in code executors are deferred, improving performance.
The session is no longer rescanned for every user response event, improving performance.
The workflow replay index is extended instead of rebuilt for each event, improving performance.
Behavior and default changes 25
Synchronous FunctionNode tools run their callable on the tool thread pool.
Allow OIDC token exchange without a client secret.
ADK can now be installed and run on Python 3.15.
The system now warns when session state is dropped.
Automatically box scalar inputs for ToolNode.
BigQuery tools can now run where CMEK is required.
The Vertex project now defaults from GCP metadata.
Stamps the Agent Registry URN as gen_ai.main_agent.id.
Content inputs are unwrapped for parallel workers after START.
Can now fan out to several workflow nodes.
Model adapters stream partial function-call arguments.
Resolved interrupts can resume without requiring rerun_on_resume.
AgentCardBuilder now defaults streaming to true.
BigQuery tools now support column names containing hyphens.
Supports automatic inference for FunctionNode instances.
Thought parts are filtered from user-facing responses.
Nested agents run in unary mode under the caller's RunConfig.
An agent tool runs under the caller's RunConfig.
Anthropic prompt cache breakpoints are emitted for ContextCacheConfig.
Search results are ranked and bounded.
Before and after model callbacks run in live mode.
The tool supports spreadsheet MIME types.
Idle sessions are evicted from the MCP session pool.
ParallelAgent supports sub-agent escalation events.
State merges use dict.update() semantics.
Tooling 5
The dev server now warns when it binds a non-loopback address.
Eval scenarios are now generated using the project backend.
Config-based project creation now skips __init__.py.
Adds gemini-3.8-flash to the model options offered by the command.
The CLI automatically configures session and memory services on Agent Runtime.
Fixes and other changes 46
Vertex AI sessions now update last_update_time when append_event is called.
Resolving the effective mode no longer mutates LlmAgent.mode.
ParallelWorker now waits for in-flight workers when a HITL interrupt occurs.
Bindings are now resolved for the deployed agent at runtime.
url_prefix is now propagated to FastAPI root_path.
NodeTool failures are surfaced to on_tool_error, and dict validation errors are returned.
An inbound new_message is now treated as a user turn.
The configuration is now honored for sync tools outside live mode.
Importing Agent no longer loads authlib.
Validates the target data subquery for detect_anomalies.
Adds opt-in validation and coercion of function tool argument types, enabled with ADK_ENABLE_FUNCTION_TOOL_ARG_VALIDATION=1.
Can be imported on OpenTelemetry 1.39; google.adk.telemetry.google_cloud still requires a newer OpenTelemetry.
Rejects num_samples=0 at construction time.
Rejects parallelism below 1 instead of hanging.
Widens the MCP version bound to admit MCP 2.x.
Rebuilds a session when the server reports it no longer holds it.
RestApiTool handles HTTP 401 and recovers stale OAuth2 credentials.
Adds support for basic authentication in OpenAPI tools.
Interrupted agent transfers can resume in static workflows.
Integral floats in list[int] tool parameters are coerced to integers.
Event names are preserved outside Agent Engine and dropped only on Agent Engine, ensuring more accurate and consistent tracking.
Normalizes session_id before checking for duplicates.
Forwards the agent's generation settings, including temperature, top_p, top_k, max_output_tokens, seed, and media_resolution, to the Live API.
Forwards the agent's generation configuration to the Live API.
MCP 1.x continues to be resolved by default.
Supports zero-argument nodes.
The command preserves non-ASCII text.
Built-in search tools work in agent hierarchies when transfer_to_agent is present.
Workflow runs now honor an early exit from before_run_callback.
Workflow runs honor an early exit from before_run_callback.
Duplicate function execution is prevented when support_cfc is enabled.
Keyword extraction is Unicode-aware.
Events are deduplicated when appended.
Events are deduplicated by equality rather than by id.
START is treated as a satisfied predecessor.
ContextCacheConfig is honored on the LiteLLM path.
Background tool tasks stop when a live agent run ends.
Live runs no longer write back into the caller's RunConfig.
Node auth resumes from the node's own auth config.
Parallel sub-agent failures are delivered to the caller.
Parallel worker items are cancelled when the worker is cancelled.
AgentRegistry resolves auth for RemoteA2aAgent.
Path parameter values are percent-encoded.
Live sessions use the session resumption handle when opened.
SQL identifiers are validated in the Spanner search tool.
Session initialization events are validated.
google-adk 143 changes
Security 6
API registry credentials are sent only to Google API endpoints in v1.
BigQuery analytics rows are sanitized in v1.
Credential and inline-data fields are excluded from logs, reprs, and spans in v1.
Database URLs are redacted in v1.
The local API server checks the Host header on every request in v1.
Google Agent Development Kit (ADK) has a Code Injection and Missing Authentication vulnerability
New APIs and options 3
OAuth2 nonce forwarding is supported in v1.
The v1 MCP configuration supports stdio opt-in.
Realtime input now supports audio_stream_end.
Behavior and default changes 11
A2A agent card RPC target origins are validated in v1.
The v1 A2A implementation now applies the event action allowlist.
Resume flattening is now implemented in the v1 A2A path.
File artifact storage is scoped to the app in v1.
The v1 code executor has the container and pod isolation defaults.
Custom eval metrics are scoped per registry, and their function path is resolved from the eval config in v1.
Eval identifiers are validated in v1.
Artifact payload paths are derived from layout in v1.
Artifact path segments are validated in v1.
Persona template rendering is supported in v1.
Thread-pool and live-mode tool dispatch now route through run_async in v1.
Tooling 1
The v1 CLI now handles deploy ignore files.
Fixes and other changes 22
The v1 A2A implementation now uses the intended agent card description source.
Agent-config code references are validated in v1.
Agent loader fixes are now present in v1.
Agent transfer targets are validated in v1.
Artifact references are scoped in v1.
Auth responses are scoped to branches in v1.
Client timeout fixes are present in v1.
The v1 implementation validates config_path.
Credential scoping fixes are present in v1.
File path resolution fixes are now present in v1.
The v1 session API again accepts a full session resource name.
GCS paths are built per call in v1.
Gemini context cache fingerprints are scoped in v1.
The v1 migration path uses an unpickle allowlist.
The v1 MCP implementation checks reserved tool names.
Session IDs are validated in v1.
Skill names are validated in v1.
Skill resource paths are validated in v1.
Thread IDs are scoped in v1.
URL validation fixes are present in v1.
User message parts are validated in v1.
Vertex RAG cleanup fixes are now present in v1.