Skip to main content
So you met ADK. You can now create a capable agent in four lines of Python:
But why does the title say “version 2”? Because the biggest change in ADK appears when you go beyond a single agent. Real support systems require many specialized agents — billing, technical, refunds, and humans for review — and they need an ecosystem to coordinate them reliably.
The image is a diagram titled "A Real Inbox" showing a support inbox of emails (billing, technical, refund) being routed to a single agent (chip icon) and then forwarded to a human agent. It illustrates how different support requests flow from an inbox to one handling agent and then to a person.
The redesign in ADK v2 (announced at Google I/O 2025) turns the framework into a graph-based workflow runtime. Instead of a largely linear, tree-like structure, your agent logic is now expressed as nodes and edges in a workflow graph.
  • Version 1: parent-child, linear execution, limited branching and looping.
  • Version 2: explicit graph runtime with nodes, edges, and runtime control over flow, parallelism, branching, and retries.
Think of the graph as a flowchart: each box (node) is a step; each arrow (edge) defines which step runs next. Agents, tools, and registered Python functions become nodes (usually inheriting a common base such as BaseNode), and the runtime decides the next step at execution time.
A diagram titled "Nodes and Edges" comparing two architecture versions, showing labeled boxes for Agent, Tool, and Function with arrows and icons. The center shows Google ADK/v2, workflow runtime, and a small graph illustration.
Every node produces events — small, structured records describing what happened. Those events form a precise audit trail: when a billing agent calls lookup_invoice, the runtime emits a trace entry recording which order was queried and what the tool returned. That trace is how you explain agent behavior later. Example event stream (formatted log):
Events are the runtime’s single source of truth for debugging and auditing. Use them to answer “why” questions (e.g., “Why did the agent promise a refund?”) by inspecting the trace.
You build a workflow by connecting nodes with edges. Read each Edge left-to-right: the source node runs and then passes its output to the destination node. START is the built-in entry point.
Because the graph is explicit and declarative, the runtime can:
  • run steps in order,
  • branch during execution,
  • fan out tasks in parallel,
  • loop back to previous nodes,
  • and orchestrate complex coordination between agents.
The graph runtime also improves reliability and observability. In ADK v1, a failed tool call or a context-window error could crash the whole conversation. ADK v2 can retry failed nodes, rewind and replay execution from an earlier point, and provide structured debugging traces. Example console trace from a failing conversation (illustrative):
Large context windows and unregistered tools are common failure points. ADK v2 provides retry, rewind/replay, and targeted debugging to recover from transient and deterministic errors.
Agents can collaborate under the graph runtime: they can pause for human review, hand control between themselves, and return control when their subtask is complete. You also don’t have to handcraft every workflow: ADK v2 provides familiar templates (sequential, parallel, loop) implemented on top of the graph engine for common patterns.
A dark presentation slide titled "Templates on the Graph" showing four template cards — SequentialAgent, ParallelAgent, LoopAgent, and Your own graph — each with a small node-and-arrow diagram. The KodeKloud logo appears in the bottom-left corner.
Use templates when they fit your problem. Build the graph directly when you need fine-grained control over branching, parallelism, retries, or debugging. Summary: what ADK v2 gives you References and further reading Next, install ADK v2 and get my_agent talking.

Watch Video