Google ADK 2.15.0: Features & Upgrade Guide
The Momentum Behind Google ADK 2.x
Google's open-source, code-first Agent Development Kit (google-adk) has evolved rapidly across the 2.x series. What started in ADK 2.0 with a clear separation between Agent (instructions, tools, and model behavior) and Workflow (graph-based orchestration across agents and tasks) has matured into a production runtime with standardized sandboxes, Agent-to-Agent (A2A) interoperability, multi-run evaluation, and enterprise messaging connectors.
Crucially, v2.15.0 arrives right alongside a major platform milestone for production deployments: on November 16, 2026, Google announced General Availability (GA) for autonomous agent scheduling (ServiceTier.DEFERRED), natively supported in google-adk v2.10.0 and later across Agent Runtime, Cloud Run, and Google Kubernetes Engine (GKE). Combined with the stabilization wave across v2.14.x and v2.15.0—which graduated core auth, environment, app, CLI, A2A, evaluation, and cache modules plus toolset features out of experimental—2.15.0 delivers a hardened runtime foundation for enterprise agent systems.
In this post, we'll cover:
- How to upgrade safely to
google-adk2.15.0using dependency constraints. - Breaking changes and silent behavioral shifts to audit before deploying.
- Deep dives and runnable Python examples for the newest ADK 2.x features—including deferred scheduling, stable execution sandboxes, multi-run evaluation with semantic argument matching, enterprise integrations, and A2A tooling.
- An end-to-end verification and regression testing workflow before promoting
2.15.0to production.
Upgrading to ADK 2.15.0 & Breaking Changes
Installation and Dependency Pinning
google-adk requires Python 3.11 or newer. For quick local upgrades, pip handles the base package and optional integration extras:
# Standard upgrade to the latest release
pip install -U google-adk
# Include optional third-party extensions and integrations
pip install -U "google-adk[extensions]"
# Or install specific integration extras (e.g., MongoDB sessions, memory, and search)
pip install -U "google-adk[mongodb]"
For CI/CD pipelines and production containers, the google/adk-python maintainers recommend installing against the repository's companion constraints files (available for Python 3.11 through 3.15) to protect against transitive dependency drift:
curl -o constraints-3.11.txt https://raw.githubusercontent.com/google/adk-python/main/constraints-3.11.txt
pip install -U google-adk -c constraints-3.11.txt
rm constraints-3.11.txt
If you want to inspect or test unreleased commits ahead of a PyPI sync, you can install directly from main:
pip install git+https://github.com/google/adk-python.git@main
Breaking Changes & Migration Checklist
If your production services are upgrading from earlier 2.x releases to 2.15.0, audit your codebase against these breaking changes and behavioral shifts:
-
Enumtool arguments arrive asEnummembers, not raw strings:FunctionToolparameters typed asEnum,Optional[Enum], orlist[Enum]now pass actual enum members into your Python function. If your tool body checksif status == "OPEN":, update it to compare againstStatus.OPEN, readstatus.value, or switch the enum toStrEnum. -
Strict keyword validation in
VertexAiSessionService.create_session: Extra keyword arguments are now restricted todisplay_name,ttl,expire_time, andlabels(plus camelCase aliases). Passing unrecognized keys raises aValueError. -
RunSkillScriptToolremoves free-form shellcommandexecution: In environment mode,RunSkillScriptToolno longer accepts an arbitrarycommandstring—which previously created a prompt-injection vector for arbitrary shell execution. Models must now pass structured parameters (args,short_options, andpositional_args), and execution is restricted to.py,.sh, and.bashscripts inside the skill directory. Legacycommandcalls returnINVALID_ARGUMENTS, and unsupported extensions returnUNSUPPORTED_SCRIPT_TYPE. -
Behavioral shifts that don't change type signatures:
- Always-on stable toolsets: Graduating 16 toolset features and core runtime modules to stable means experimental disable flags no longer block them—diff your active tool surface before deploying.
- One-way session serialization in
FirestoreSessionService: Event payloads are serialized as JSON strings; sessions written by2.14+cannot be read by2.13or earlier on rollback. - PostgreSQL JSON column type: Newly created tables use
jsoninstead ofjsonb(existing tables are not migrated), which affects external queries relying onjsonboperators or GIN indexes. - Earlier context compaction and extra response events: Token-threshold compaction now counts tool outputs since the last model call (triggering earlier), and agents using
output_schemaalongside a transfer target emit two extra events viaset_model_responseon certain models.
Major Features & Updates (and How to Use Them)
1. Core Runtime, Workflows & Autonomous Agent Scheduling
How to Use Deferred Scheduling (ServiceTier.DEFERRED) for Batch Workloads
One of the highest-impact runtime features you can adopt right now (supported in google-adk v2.10.0+ and Generally Available across Agent Runtime, Cloud Run, and GKE as of November 16, 2026) is autonomous agent scheduling via ServiceTier.DEFERRED.
Interactive assistants need sub-second time-to-first-token, whereas document summarization pipelines, bulk evaluations, and overnight research workflows can tolerate queuing delays. By configuring service_tier on RunConfig rather than hardcoding it on the Agent or Model, a single agent definition can serve both real-time traffic and off-peak batch traffic at a 50% inference discount.
Under the hood, passing ServiceTier.DEFERRED causes ADK to mark the model request for background execution via the Gemini Interactions API. The backend queues the work and immediately returns an interaction ID; ADK handles polling with exponential backoff and absorbs transient read errors until the final response arrives, yielding a standard event to your runner loop.
import asyncio
from google.adk.agents import LlmAgent, RunConfig
from google.adk.apps import App
from google.adk.models import ServiceTier
from google.adk.models.google_llm import Gemini
from google.adk.runners import InMemoryRunner
from google.genai import types
# Deferred scheduling requires a Gemini model with use_interactions_api=True
batch_agent = LlmAgent(
name="quarterly_summarizer",
model=Gemini(
model="gemini-flash-latest",
use_interactions_api=True,
),
instruction="Analyze the provided telemetry and generate an executive summary.",
)
app = App(name="batch_reporting_app", root_agent=batch_agent)
runner = InMemoryRunner(app=app)
async def run_deferred_job() -> None:
session = await runner.session_service.create_session(
app_name=app.name,
user_id="svc_batch_worker",
session_id="q4_summary_run_01",
)
# Queue model calls on off-peak capacity for this run only
run_config = RunConfig(service_tier=ServiceTier.DEFERRED)
async for event in runner.run_async(
user_id="svc_batch_worker",
session_id=session.id,
new_message=types.Content(
role="user",
parts=[types.Part.from_text(text="Summarize Q4 latency and error metrics.")],
),
run_config=run_config,
):
if event.content and event.content.parts:
for part in event.content.parts:
if part.text:
print(part.text)
if __name__ == "__main__":
asyncio.run(run_deferred_job())
Production caveats to keep in mind:
- No SSE streaming: Constructing
RunConfig(service_tier=ServiceTier.DEFERRED, streaming_mode=StreamingMode.SSE)raises apydantic.ValidationError(and/run_ssewith"streaming": truereturns HTTP 422). - Per-turn queuing & timeouts: Every model turn in a multi-tool loop creates its own queued interaction. If serving over HTTP on Cloud Run or behind a load balancer, raise ingress/request timeouts so the connection stays open during polling—if the client disconnects, the server cancels polling while the queued backend inference still executes and bills.
- Supported classes: Custom
BaseLlmsubclasses andManagedAgentignoreservice_tier.
2. Execution Environments, Code Sandboxes & Skill Security
How to Use Stable Execution Sandboxes (BaseEnvironment, LocalEnvironment, DaytonaEnvironment, E2BEnvironment)
Agents that write, test, and execute code need strict filesystem and process isolation. ADK's execution environment abstraction—BaseEnvironment, LocalEnvironment, EnvironmentToolset, DaytonaEnvironment, and E2BEnvironment—is now stable, giving you a uniform async lifecycle across local development and cloud sandboxes:
- Instantiate the environment (
LocalEnvironment,DaytonaEnvironment, orE2BEnvironment). - Call
await env.initialize()(idempotent). - Pass it to
EnvironmentToolsetfor agent attachment, or invokeexecute(),write_file(),read_file(), andread_file_stream()directly. - Always clean up with
await env.close().
Because read_file_stream() streams files in chunks across LocalEnvironment, E2BEnvironment, and DaytonaEnvironment, ReadFileTool can inspect specific line ranges in massive log files without exhausting worker RAM. Similarly, AgentEngineEnvironment chunks large file I/O, ContainerCodeExecutor adds input and output file support, and command timeouts surface at 570 seconds—safely ahead of the underlying service deadline.
import asyncio
from pathlib import Path
from google.adk.agents import LlmAgent
from google.adk.environment import LocalEnvironment
from google.adk.tools.environment import EnvironmentToolset
from google.adk.models.google_llm import Gemini
async def build_sandboxed_coding_agent() -> tuple[LlmAgent, LocalEnvironment]:
# Swap LocalEnvironment for E2BEnvironment or DaytonaEnvironment in production
env = LocalEnvironment()
await env.initialize()
# Seed input data into the environment's isolated working directory
await env.write_file(Path("metrics.csv"), "service,p95_ms\nauth,42\nbilling,118\n")
# Expose execute, read/write, and streamed file inspection tools to the agent
env_toolset = EnvironmentToolset(environment=env)
coder_agent = LlmAgent(
name="sandboxed_analyst",
model=Gemini(model="gemini-flash-latest"),
instruction=(
"Use the environment tools to inspect metrics.csv and compute "
"summary statistics with Python scripts."
),
tools=[env_toolset],
)
return coder_agent, env
async def main() -> None:
agent, env = await build_sandboxed_coding_agent()
try:
result = await env.execute("python3 -c \"print('Sandbox ready:', __import__('os').getcwd())\"")
print(f"Exit={result.exit_code}, Stdout={result.stdout.strip()}")
finally:
await env.close()
if __name__ == "__main__":
asyncio.run(main())
(Note: When wiring E2BEnvironment, verify your environment satisfies the updated e2b >= 2.29.5 minimum dependency. If you use SkillToolset in environment mode, ensure your skill instructions guide the model to pass structured args / positional_args to RunSkillScriptTool rather than raw shell strings.)
3. Enterprise Integrations, Memory & A2A Protocol
ADK's integration surface has expanded rapidly around three production pillars: workplace messaging, durable vector memory, and standardized Agent-to-Agent (A2A) discovery.
Deploying Directly to Microsoft Teams with TeamsRunner
Instead of building custom Bot Framework webhook bridges, TeamsRunner embeds an ADK agent directly into Microsoft Teams chats and channels via create_app() and start():
from google.adk.agents import LlmAgent
from google.adk.integrations.teams import TeamsRunner
from google.adk.models.google_llm import Gemini
support_agent = LlmAgent(
name="teams_ops_assistant",
model=Gemini(model="gemini-flash-latest"),
instruction="Help engineering teams triage alerts and summarize incident timelines.",
)
# Connect the ADK agent to Microsoft Teams channels and direct messages
runner = TeamsRunner(agent=support_agent)
app = runner.create_app()
if __name__ == "__main__":
runner.start()
Durable Sessions and Vector/TTL Memory with MongoDB
For horizontally scaled agent services that need shared state across runner replicas, ADK's MongoDB integration (pip install google-adk[mongodb]) provides MongoDbSessionService (with optimistic concurrency control), MongoDbMemoryService, and MongoDbToolset (which exposes mongodb_vector_search and mongodb_hybrid_search powered by $rankFusion on MongoDB Atlas and self-managed MongoDB 8.0+).
MongoDbMemoryService supports vector-search retrieval (retrieval_mode="vector" or "auto") and automatic TTL expiration (memory_ttl_days) so stale conversational memories age out cleanly:
import os
from google.adk.integrations.mongodb import (
MongoDbMemoryService,
MongoDbSessionService,
MongoDbToolset,
)
MONGODB_URI = os.environ["MONGODB_URI"]
session_service = MongoDbSessionService(
connection_string=MONGODB_URI,
db_name="adk_production",
)
memory_service = MongoDbMemoryService(
connection_string=MONGODB_URI,
db_name="adk_production",
collection_name="agent_memories",
retrieval_mode="auto", # Uses vector search when configured, or keyword fallback
memory_ttl_days=30, # Automatically expire memories after 30 days
)
# For Agent Engine deployments, pass connection_string_env_var instead of a raw URI
# so credentials stay out of pickled deployment artifacts.
search_toolset = MongoDbToolset(
connection_string_env_var="MONGODB_URI",
db_name="product_catalog",
)
Routing Workflows with OpenAIDecisionsClassifier
When orchestrating complex routing or tool-gating branches, OpenAIDecisionsClassifier evaluates classifier questions in a single batched JSON request via OpenAI's Decisions API. You can pass an api_key to create a dedicated OpenAIDecisionsClient (which manages the HTTP/2 connection, retries, and token accounting) or share one OpenAIDecisionsClient across multiple classifiers.
Generating Stable A2A Agent Cards from the CLI
With ADK's A2A integration promoted to stable, you can generate an A2A-compliant agent card directly from the CLI—complete with skill-level security metadata supported by AgentCardBuilder:
adk generate_agent_card path/to/my_agent
4. Evaluation, CLI (adk web / adk eval), & Observability
Catching Non-Determinism with MultiRunConfig and ToolArgsMatcher
Single-run agent evaluations create a false sense of confidence: an agent might pass a tool-calling scenario once and fail on the second attempt due to sampling variance. ADK addresses this directly with MultiRunConfig and ToolArgsMatcher.
From the CLI, you can execute every evaluation case multiple times concurrently in fresh sessions and aggregate pass rates:
# Run each eval case 5 times with up to 4 concurrent executions,
# storing eval artifacts outside a read-only agents directory
adk eval path/to/my_agent path/to/evalset.evalset.json \
--num_runs 5 \
--parallelism 4 \
--eval_storage_uri gs://my-adk-eval-artifacts/runs
And in your Python evaluation configuration, MultiRunConfig (google.adk.evaluation.eval_config) pairs with ToolArgsMatcher to enforce strictness per argument. Instead of brittle string equality across every parameter, ToolArgsMatcher supports four modes:
- Exact match (for IDs, account numbers, or enum flags).
- Case-insensitive match (for tickers, region codes, or titles).
- Numeric tolerance (for prices, coordinates, or timestamps).
- LLM-backed semantic checks (for natural-language search queries or summaries where intent matters more than exact phrasing).
Additionally, AgentEvaluator accepts a BaseNode or App constructed dynamically at runtime—making it straightforward to integrate ADK evaluations into pytest suites without static directory layouts.
Watch out for one config gotcha: multi_run_config rejects unknown nested keys (so a typo like num_run fails loudly), whereas a typo in the top-level multi_run_config key itself can be silently ignored—always inspect your eval summary output to confirm each case ran N times.
Observability Note for Vertex AI Agent Engine (2.14.1+)
If you deploy ADK agents on Vertex AI Agent Engine, note that patch 2.14.1 turned off FastAPI's native tracing on Agent Engine (87e5399) to resolve duplicate/conflicting trace spans. Also keep in mind that histogram bucket boundaries for several gen_ai metrics shifted in 2.14.0, so compare p95 latency dashboards carefully across the upgrade boundary.
Performance Improvements & Notable Bug Fixes
Across the 2.14.x and 2.15.0 releases, ADK has delivered substantial runtime optimizations for deep multi-agent graphs and long-running multi-turn workflows: Google's release benchmarks report that a 30-node workflow executing 200 turns runs 23% faster with 9% lower peak memory, alongside streamed chunked file I/O in BaseEnvironment.read_file_stream that eliminates memory spikes when agents inspect large logs or datasets. Always validate latency and memory consumption against your own production traces after upgrading.
Putting It Together: End-to-End Upgrade & Verification Workflow
Before rolling google-adk 2.15.0 out to production, follow a structured verification loop:
-
Pin and upgrade in an isolated environment using the Python constraints file (
constraints-3.11.txt..constraints-3.15.txt). -
Audit your tool surface and state backends:
- Search your codebase for
FunctionTooldefinitions acceptingEnumparameters. - Check any
SkillToolsetusages for deprecatedRunSkillScriptToolfree-formcommandstrings. - Back up Firestore/PostgreSQL session databases before migrating.
- Search your codebase for
-
Run multi-run regression evals (
adk eval ... --num_runs 5 --parallelism 4) comparing your pre-upgrade and post-upgrade pass rates and tool-argument trajectories viaToolArgsMatcher. -
Launch the local dev UI and CLI to manually inspect event streams, compaction behavior, and A2A cards:
# Interactive CLI test with initial state file
adk run path/to/my_agent --state_file tests/initial_state.json
# Multi-agent web debugger
adk web path/to/agents_dir
Pro Tip: Keeping AI Coding Assistants Aligned with ADK 2.x
Because google-adk moves quickly (bi-weekly releases, new 2.x workflow primitives, and evolving integrations), AI coding assistants frequently hallucinate outdated ADK 1.x patterns unless grounded in current docs. Google hosts machine-readable documentation following the llms.txt standard at:
- https://adk.dev/llms.txt — Curated index of ADK documentation and API references.
- https://adk.dev/llms-full.txt — Complete ADK documentation bundled into a single file.
You can also wire the official ADK Docs MCP Server directly into Claude Code, Cursor, or Antigravity:
claude mcp add adk-docs --transport stdio -- \
uvx --from mcpdoc --with "mcp<2" mcpdoc \
--urls AgentDevelopmentKit:https://adk.dev/llms.txt \
--transport stdio
Conclusion & Next Steps
With v2.15.0, google-adk continues its rapid march toward enterprise-grade reliability—building on stable execution sandboxes, hardened skill execution, A2A interoperability, multi-run evaluation, and GA autonomous deferred scheduling.
Recommended next steps:
- Check the google/adk-python Releases page on GitHub to review full commit logs and release assets before pinning in production.
- Pin your production upgrade against the matching Python constraints file (
constraints-3.11.txtthroughconstraints-3.15.txt). - Consult adk.dev (or point your coding assistant at
https://adk.dev/llms.txt) for the latest API signatures and migration guides.
Craetorian Solutions helps engineering teams upgrade, evaluate, and operate production multi-agent systems on Google ADK, Vertex AI Agent Engine, and Cloud Run. Backed by 28 years of enterprise IT experience, we deliver resilient AI architectures and practical engineering training. Contact us today → or email us at info@craetoriansolutions.com.