🤖 AI Hot

ADK Go 2.0 Multi-Agent Framework with Graph Workflows

A
Alex Chen

Google shipped ADK Go 2.0 in late June, and it’s a bigger update than the version number suggests. The headline is a new graph-based workflow engine that replaces the linear chain model from 1.x — but the stuff that actually matters for production is the human-in-the-loop primitives and the dynamic orchestration layer that lets agents re-plan mid-execution. I spent a weekend porting a three-agent document processing pipeline from v1.4 to v2.0 and came away with strong opinions about what’s better, what’s worse, and who should pay attention.

What Changed in ADK Go 2.0

ADK (Agent Development Kit) is Google’s Go framework for building multi-agent applications. Version 1.x was essentially a chain-of-agents pattern: define a sequence, each agent processes input and passes output to the next. Simple, predictable, and rigid — like a Makefile for LLM calls.

Version 2.0 replaces the chain with a directed graph. Each agent is a node. Edges define possible transitions. The runtime evaluates conditions at each node and decides which edge to follow. This shifts orchestration from compile-time to runtime — your graph structure is static, but the path through it is determined by the agents’ outputs.

Here’s what the new graph definition looks like compared to v1’s chain:

// ADK 1.x — linear chain
pipeline := adk.NewChain().
    Add("classifier", classifierAgent).
    Add("extractor", extractorAgent).
    Add("validator", validatorAgent)

// ADK 2.0 — directed graph
graph := adk.NewGraph("document-pipeline").
    AddNode("classifier", classifierAgent).
    AddNode("extractor", extractorAgent).
    AddNode("validator", validatorAgent).
    AddNode("human_review", reviewAgent).
    AddEdge("classifier", "extractor", func(ctx *Context) bool {
        return ctx.Output["doc_type"] == "invoice"
    }).
    AddEdge("classifier", "validator", func(ctx *Context) bool {
        return ctx.Output["doc_type"] == "contract"
    }).
    AddEdge("extractor", "human_review", func(ctx *Context) bool {
        return ctx.Output["confidence"] < 0.8
    }).
    AddEdge("extractor", "validator", func(ctx *Context) bool {
        return ctx.Output["confidence"] >= 0.8
    })

The edge conditions are pure Go functions — they can check agent outputs, query external services, or examine timing and cost metrics. This is the dynamic orchestration piece: your pipeline can branch based on what actually happened, not what you expected to happen.

Human-in-the-Loop as a First-Class Concept

The feature I’m most excited about is the human review node type. It’s not a hack where you pause execution and wait for a Slack message — it’s a proper state machine with timeout handling, escalation paths, and audit logging.

When an agent hits a human_review node, the graph pauses. ADK publishes an event to a configurable backend (Slack, email, a webhook, or a custom handler you write). The reviewer sees the agent’s output, approves or rejects, and the graph resumes from that decision point. If nobody responds within the timeout, you configure what happens: auto-approve, auto-reject, or escalate to a different reviewer.

The Go API looks like this:

reviewNode := adk.NewHumanReviewNode("invoice_review", adk.HumanReviewConfig{
    Timeout: 30 * time.Minute,
    OnTimeout: adk.EscalateTo("senior_review"),
    MessageTemplate: `Review required for invoice {{.InvoiceID}}
Amount: {{.Amount}}
Extracted by: {{.AgentName}}
Confidence: {{.Confidence}}

Approve or reject: {{.ActionURL}}`,
    Channels: []adk.Channel{
        adk.SlackChannel{ChannelID: "C0123456"},
    },
})

This matters because most “production” agent deployments I’ve seen either skip human review entirely (bad for accuracy-critical workflows) or implement it with brittle custom code (bad for reliability). ADK baking it into the runtime means the review step has the same guarantees as any other node: it’s part of the execution trace, it respects retry policies, and failures are handled through the same error propagation path.

Dynamic Orchestration: Agents That Re-Plan

The graph model enables something that was effectively impossible in v1: agents that can change the plan mid-execution. ADK 2.0 calls this “dynamic orchestration.”

Here’s the concrete scenario: you have a research agent that’s supposed to gather information from three sources. After the first source, the agent realizes the information is contradictory. In v1, it would finish all three sources before the contradiction was surfaced. In v2, the edge condition function detects the contradiction and redirects to a “resolution” agent that reconciles the conflict before continuing.

The edge conditions have access to the full execution history:

AddEdge("scrape_source_1", "conflict_resolver", func(ctx *Context) bool {
    source1Facts := ctx.NodeOutputs["scrape_source_1"]["facts"].([]string)
    for _, prev := range ctx.History {
        if prev.NodeID == "scrape_source_2" {
            source2Facts := prev.Output["facts"].([]string)
            if hasContradiction(source1Facts, source2Facts) {
                ctx.Metadata["conflict_detected"] = true
                return true
            }
        }
    }
    return false
})

The ctx.History field tracks every node execution with its inputs, outputs, timing, and token usage. This is also how ADK generates execution traces for debugging — something I wish I’d had when a three-agent pipeline was silently dropping 15% of documents and I spent three days bisecting the bug.

What Porting From v1 Actually Looked Like

I ported a pipeline that classifies, extracts, and validates financial documents. Three agents, about 200 lines of Go in v1, plus another 150 lines of custom code handling edge cases that the chain model couldn’t express (conditional retries, confidence-based routing, manual review for low-confidence extractions).

The v2 port eliminated all 150 lines of custom edge-case code. The graph edges handle conditional routing. The human review node handles low-confidence cases. The retry policy is now a graph-level configuration instead of per-agent boilerplate. Total code dropped from ~350 lines to ~180 lines.

The migration isn’t painless, though. Three things I hit:

Graph state serialization. ADK 2.0 checkpoints the graph state for recovery and human review. If your agent outputs contain non-serializable types (channels, file handles, database connections), the checkpoint will fail cryptically. I had to wrap a database query result in a serializable struct. The error message was cannot serialize field "conn": unsupported type — took me 45 minutes to trace it to an open PostgreSQL connection I was passing between agents.

Concurrency model changed. v1 ran agents sequentially. v2 can run independent branches in parallel if the graph topology allows it. This is faster but means your agents need to be goroutine-safe. If two agents share a rate-limited API client, you need a mutex or a semaphore. The docs mention this in a footnote on page 34 of the migration guide — easy to miss.

Testing got more complex. Testing a linear chain is straightforward: mock each agent, assert the output flows correctly. Testing a graph means writing tests for each edge condition, testing timeout behavior, testing the human review flow with simulated approvals and rejections. ADK provides a test harness (adktest) that helps, but you’re still writing 3-4x more test cases for the same business logic.

Where ADK Fits in the Multi-Agent Landscape

The multi-agent framework space in mid-2026 is crowded. Here’s how ADK Go 2.0 compares to what else is out there:

LangGraph (Python/JS): The closest comparison. LangGraph also uses a graph-based state machine model. ADK’s advantage is Go’s performance and type safety — your edge conditions are compiled, not interpreted at runtime. LangGraph’s advantage is the Python ecosystem: easier to prototype, more LLM integrations, better documentation. If your team writes Go and cares about latency, ADK wins. If you’re prototyping or mostly working in Python, LangGraph is the safer bet.

CrewAI (Python): Higher-level abstraction where you define agent roles and goals rather than graph topologies. Faster to get started, harder to control precisely. CrewAI is better for exploratory multi-agent setups where you’re figuring out what works. ADK is better when you know exactly what your pipeline should do and you need it to do it reliably.

OpenAI Agents SDK (Python/Node): Still mostly single-agent with handoff patterns. The multi-agent primitives are limited compared to ADK or LangGraph. Best if you’re all-in on OpenAI models and want minimal infrastructure.

Microsoft AutoGen (Python): Strong in conversational multi-agent patterns where agents talk to each other. ADK is stronger in structured workflows where the interaction pattern is less chat and more data-processing pipeline.

ADK Go 2.0 occupies a specific niche: teams that are already using Go in production, need reliable multi-agent pipelines, and care about latency. It’s not trying to be the most flexible framework or the easiest to learn. It’s trying to be the most production-ready.

What’s Still Missing

A few gaps that I hope get addressed in 2.1 or 2.2:

No built-in RAG support. You can integrate a vector store by writing a custom agent node, but there’s no first-class RAGNode or KnowledgeBase abstraction. LangGraph has this. For document-heavy pipelines, you’re writing the same embedding-and-retrieval boilerplate across multiple agents.

Observability is basic. ADK emits OpenTelemetry traces, which is good for infrastructure monitoring, but the agent-specific observability (token usage per node, latency breakdown between LLM calls and edge evaluations, human review queue depth) requires custom dashboards. A built-in Grafana template or a debug UI would go a long way.

Go-only. There’s no TypeScript or Python binding. If your frontend team wants to define a portion of the graph (for client-side agent orchestration), they can’t. The ADK team has mentioned gRPC-based interop as a future direction, but it’s not here yet.

Cold start for graph compilation. The first execution of a graph compiles the edge conditions and initializes the agents. For my three-agent pipeline, this takes about 2 seconds. For a 50-agent graph, I’d expect this to be noticeable. There’s no pre-compilation or caching mechanism documented.

Who Should Adopt ADK Go 2.0

  • Teams running Go in production who need multi-agent pipelines for data processing, document workflows, or API orchestration
  • Anyone building accuracy-critical agent systems where human review is non-negotiable
  • Projects where you’ve outgrown linear agent chains and are writing custom routing logic

Who Should Wait

  • Python shops. LangGraph or CrewAI will get you to production faster
  • Teams just starting with agents. ADK assumes you understand agent architecture — there’s no gentle onboarding curve
  • Anyone who needs a visual graph editor or low-code interface. ADK is code-only
  • Solo developers building prototypes. The overhead of graph definition and testing isn’t worth it for experiments

The Bottom Line

ADK Go 2.0 is a solid upgrade that addresses the two biggest gaps in v1: the rigid linear execution model and the lack of human review primitives. The graph engine is well-designed — edge conditions as Go functions is the right abstraction, and the execution trace model makes debugging multi-agent failures significantly easier.

I’m keeping it for my document pipeline. The 50% code reduction from eliminating custom routing logic is real, and the human review node replaced a cronjob I had polling a Slack channel for approvals every 60 seconds. That cronjob was flaky, missed messages, and woke me up at 2am twice. It’s gone now. That alone is worth the migration effort.

The framework is not trying to be everything to everyone, and that’s a feature, not a bug. It’s a Go framework for production multi-agent systems. If that’s what you need, it delivers.

Disclosure: CarCare Guide is reader-supported. When you buy through links on our site, we may earn an affiliate commission at no extra cost to you. Learn more.
A
Alex Chen