What problem does it solve?
Complex problems often require teams of specialized agents coordinated by a simple orchestrator. ADK patterns provide robust coordination, enabling modular, maintainable, and scalable agentic systems that avoid monolithic agents.
Core Features & Use Cases
- Coordinator pattern: A root coordinator dispatches tasks to specialist agents based on request type, improving clarity and debuggability.
- Agent types (LlmAgent vs WorkflowAgent): Dynamic reasoning vs deterministic flows for adaptable vs predictable tasks.
- Agent-as-Tool pattern: Wraps agents as callable tools to compose hierarchical, reusable capabilities.
- Inter-Agent Communication via Session State: Passes context between agents with lightweight state for coordinated workflows.
- Advanced orchestration: Dynamic selector, multi-stage pipelines, and error handling for robust production workflows.
- Anti-pattern awareness: Avoid monolithic agents and circular dependencies with guided best practices.
- Real-world scenario: Design a coordinator that delegates to specialists to implement a feature with tests and architecture decisions.
Quick Start
Create a root coordinator and two specialist agents and wire them into a small end-to-end workflow to orchestrate a sample task.