Skip to content
Blog

ADK Versioning and Roadmap: Migrating from ADK 1.x to ADK 2.0

ADK 2.0 GA dates, the Workflow Runtime breaking changes, and a concrete migration path from google-adk 1.x — event schema, BaseNode, retries, and version pinning.

Published on • November 24, 2026

AI Assistant

ADK’s current major version is 2.0, shipped as google-adk on PyPI with a matching line for TypeScript, Go, Java, and Kotlin. The headline of 2.0 is a architectural pivot: ADK moved from a hierarchical agent executor to a graph-based Workflow Runtime, where agents, tools, and functions are evaluated as individual nodes in a workflow graph. That change is mostly compatible — but not entirely, and the incompatibilities are subtle enough to break production silently.

This article summarizes the versioning story and walks the documented 1.x → 2.0 migration for Python, with notes on the other languages.

Version timeline and release cadence

Runtime2.0 GAPackage
ADK Python 2.0.0May 19, 2026pip install google-adk (Python 3.11+, constraints files for 3.11–3.15)
ADK Go 2.0.0June 30, 2026go get google.golang.org/adk/v2
ADK TypeScript 2.0.0August 21, 2026npm install @google/adk

The adk-python README notes a roughly bi-weekly release cadence, with bug fixes landing on main first (pip install git+https://github.com/google/adk-python.git@main for pre-release access) and companion constraints-3.x.txt files for transitive dependency protection. New in 2.0 across languages: graph-based workflows, dynamic workflows (code-based loops and branching), and collaborative workflows with coordinator agents.

The four breaking changes that matter

1. Event schema grew new fields. Python 2.0 adds node_info and output to the core Event schema (TypeScript adds four optional fields — output, route, nodeInfo, isolationScope; Go adds five, including requestedInput). If you implemented a custom BaseSessionService storing events in rigid SQL columns, your schema must accommodate them — inserting a 2.0 event into a 1.x table fails. Services that store events as serialized JSON blobs need no change. The same applies to downstream validators running additionalProperties: false.

2. BaseAgent now subclasses BaseNode. In 1.x, agents were standalone executors; in 2.0 they are nodes in the graph engine. Custom overrides of legacy abstract methods such as _run_async_impl() or generate_content() are silently ignored — the workflow engine bypasses them entirely. If you injected telemetry or state management there, it has quietly stopped running. Move that logic into BeforeAgentCallback / AfterAgentCallback.

3. No more hand-rolled event appending. context.session.events.append(custom_event) (and direct enqueue_event use) circumvents the graph engine and breaks determinism. The framework now needs strict control over event emission for state, routing, and streaming — yield events from within your node instead.

4. Error handling now belongs to the framework. ADK 2.0 catches exceptions to drive automatic retries, telemetry, and Human-in-the-Loop pauses. A broad except Exception: left inside a migrated tool masks the failure and permanently disables retries for that step; catching BaseException traps NodeInterruptedError and breaks HITL pauses. Let standard exceptions propagate so they can be evaluated against your RetryConfig(max_attempts=3), and never catch BaseException unless you re-raise.

Stay on 1.x while you prepare

If you are not ready, pin the line explicitly rather than floating:

# Python (1.x supports Python 3.10+)
pip install "google-adk~=1.0"

# TypeScript
npm install @google/adk@^1.6.0

# Go
go get google.golang.org/adk@v1

The ~= compatible-release operator keeps you on 1.x patches while 2.0 work happens in a branch of your repo.

Migrate with Agents CLI

ADK’s migration guide recommends planning the upgrade with agents-cli rather than rewriting line by line:

uvx google-agents-cli setup   # installs the CLI + ADK skills into your coding agent
agents-cli info               # verify
agents-cli eval run           # grade the migrated agent against baseline evals
agents-cli run "Look up customer cust_101 and apply a 10% discount on $100."
agents-cli playground         # interactive web UI

The documented pattern mapping for the conversion:

Existing patternADK equivalent
Custom tool schemas/wrappersNative Python functions or FunctionTool
Custom agent loops/runnersAgent (declarative model, instructions, tools, sub-agents)
State dictionaries/scratchpadssession.state via ToolContext
Multi-agent pipelinesgoogle.adk.workflow.Workflow graph nodes
Multi-agent handoffsAgent(sub_agents=[...])
Remote agent communicationA2A Protocol

A migrated root agent looks like plain ADK:

from google.adk.agents import Agent

root_agent = Agent(
    name="customer_support_agent",
    model="gemini-flash-latest",
    instruction="Assist customers with account inquiries and discounts using your tools.",
    tools=[lookup_customer, calculate_discount],
)

Convert existing test cases into evaluation datasets under eval/ first, then run agents-cli eval run to compare against your baseline before flipping production traffic. Report genuine incompatibilities with the v2 label on the adk-python issue tracker.

What stays the same, and a checklist

Plenty survives the upgrade unchanged: root_agent = Agent(name=..., model=..., instruction=..., tools=[...]) still works, tools remain plain Python functions with type hints and docstrings, and session.state plus output_key behave as before. The README’s two-class mental model — Agent defines instructions, tools, and behavior; Workflow orchestrates them in a graph — is the 2.0 shape of what you already built.

[ ] Pin google-adk~=1.0; capture a green baseline with the current eval suite
[ ] Inspect custom BaseSessionService storage: rigid columns need node_info + output
    (serialized-JSON event blobs need no change)
[ ] Grep for _run_async_impl / generate_content overrides -> move to
    BeforeAgentCallback / AfterAgentCallback
[ ] Grep for session.events.append and enqueue_event -> yield events from nodes
[ ] Remove broad `except Exception` and any BaseException catch inside tools
[ ] Configure RetryConfig(max_attempts=3) and let exceptions propagate
[ ] Upgrade to pip install google-adk, run agents-cli eval run, diff scores
[ ] Update downstream JSON validators that set additionalProperties: false

Run the checklist language-by-language if you cross the Go boundary too: the module path moves from google.golang.org/adk to google.golang.org/adk/v2, and session.NewEvent now takes a context.Context as its first argument (session.NewEvent(ctx, ctx.InvocationID())), with event IDs and timestamps resolved through the platform package for replay-safe determinism. Since the new runtime also changes how events accumulate in history, this is a good moment to re-validate long-conversation behavior against context-compaction-in-google-adk.md and caching economics in context-caching-with-gemini-adk.md.

Takeaway: ADK 2.0 (Python GA May 19, 2026) trades the hierarchical executor for a graph-based Workflow Runtime, so migrating means auditing custom BaseSessionService schemas for the new Event fields, moving execution logic out of _run_async_impl() into before/after callbacks, deleting manual event appends and broad try/except blocks so retries and HITL work — and until that’s done, pin google-adk~=1.0 and drive the conversion with agents-cli plus eval datasets.

Sources