New major features
In ADK Go 2.0 we are adding our new graph-based workflow engine, built-in human-in-the-loop, dynamic orchestration and more:
- Agent workflows — a new graph-based orchestration engine. Compose agents, tools, and functions as nodes in a directed graph executed by a concurrent scheduler: static and dynamic graphs, conditional routing, fan-out/fan-in (JoinNode), parallel workers, per-node retries/timeouts, input/output schema validation, and human-in-the-loop pause/resume. See examples/workflow/.
- Collaboration agents — LlmAgent gains
chat,task, andsingle_turnmodes so a coordinator can delegate to specialist sub-agents that return control automatically, each with isolation-scoped conversation history. See examples/multiagent/collaboration/. - Context unification — the separate
ToolContext,CallbackContextare merged into a singleagent.Context.New agent.StrictContextMockkeeps test fakes forward-compatible as the interface grows.
Note: v2 moves the module path to google.golang.org/adk/v2 and requires Go 1.25+.
Migration
To migrate from v1 please follow the migration guide.
What's Changed
Full Changelog: v1.4.0...v2.0.0