Architecture
How the ADK fits together: the pipeline, the three type layers, the Runner loop, the LLM ABC, and the multi-agent composition primitives.
The big-picture pipeline. Every Runner.arun(...) call traverses this shape.
- Overview β The five-stage pipeline and where each subsystem plugs in.
- Type layers β
LLMInputContentItem(Layer 1),ChatCompletion*(Layer 2 wire),RunItem(Layer 3 developer-facing). - Runner β The agent loop,
max_turns, retries, streaming. - LLM ABC β Framework-owned
LLM, not OpenAI'sModel. One conversion per direction inside each provider. - Handoffs & Swarms β Routing and iterative collaboration.
- Graphs β State-machine orchestration with checkpointers and HITL.
- Governance β Tenant routing, allowlists, audit, cost ledger.