ADK-Rust Official Documentation
Welcome to the official documentation for ADK-Rust (Agent Development Kit for Rust). This documentation provides comprehensive guides and references for building AI agents using the Rust implementation of the ADK framework.
Getting Started
- Introduction - Overview of ADK-Rust, its architecture, and key concepts
- Quickstart - Build your first agent in under 10 minutes
- A2UI Quickstart - Emit A2UI JSONL and render it in React
- Migrating 1.0 → 2.0 - Complete breaking-change list with before/after code
Core
- Core Types - Fundamental types: Content, Part, Agent trait, Tool trait, contexts
- Runner - Agent execution runtime and configuration
- Plugins - Lifecycle hooks for tool/model interception and middleware
Models
- Model Providers - LLM integrations: Gemini, OpenAI, Anthropic, DeepSeek, Groq, Ollama
- Ollama - Local inference with Ollama
- mistral.rs Integration - Native mistral.rs for high-performance local inference
Agents
- LlmAgent - The core agent type using Large Language Models
- CodeAgent (CodeAct) - Acts by writing and running code via a
CodeRuntime - Workflow Agents - Deterministic agents: Sequential, Parallel, Loop
- Multi-Agent Systems - Building agent hierarchies with sub-agents
- Graph Agents - LangGraph-style workflow orchestration
- Realtime Agents - Voice-enabled agents with OpenAI/Gemini
Coding Agent
A native coding agent: read/edit/run code in a sandboxed workspace, autonomous goal mode, and parallel ultra-review workflows.
- Overview - Start here: the pieces, install, and a 60-second quick start
- Dev Tools -
adk-devtools: read/write/edit/glob/grep/bash + the sandboxedWorkspace - Harness -
CodingAgent(thecodingfeature), the plan loop,write_todos - CLI -
adk-rust code/goal(durable, resumable) /ultracode - Workflows - Ultra-review on
adk-graph: parallel reviewers + fan-in - Examples - The three runnable example crates
Realtime & Multimodal
A dedicated, newcomer-friendly guide to building voice + multimodal agents — architecture, concepts, and runnable examples.
- Overview - Start here: the mental model, install, and a 60-second quick start
- Architecture - The four layers, event loop, audio pipeline, and turn lifecycle
- Providers - OpenAI Realtime & Gemini Live models, voices, and how to choose
- Tools - Server-side actions: native handlers, bridged
adk_core::Tools, parallel calls - Multimodal - Video input via
send_video_frameand browser camera capture - Affective Dialogue - Emotion-aware responses on Gemini native-audio
- Memory - Context injection, turn storage, and knowledge-graph self-curation
- Building Web Apps - The server-side bridge, WS protocol, and Web Audio
- Examples - The four runnable examples and a suggested learning path
Tools
- Function Tools - Create custom tools with async Rust functions
- Built-in Tools - Pre-built tools like GoogleSearchTool
- MCP overview and architecture - Where MCP fits and which ADK-Rust surface to use
- MCP client - Tools, resources, prompts, completion, subscriptions, elicitation, tasks, and HTTP
- Dynamic MCP server manager - Runtime local-server registry, persistence, monitoring, and restart
- MCP server authoring - Publish tools and other capabilities with the aligned official Rust SDK
- MCP security - Authentication, visibility, authorization, approval, and secret handling
- MCP testing - Deterministic gates and deployment verification
- Browser Tools - 46 WebDriver tools for web automation
- UI Tools - Dynamic UI generation with forms, cards, charts
- RAG - Retrieval-Augmented Generation for knowledge base search
- ACP Tools - Use an ACP coding agent as a typed ADK-Rust tool
- Retry & Reflect - Tool failure recovery with reflection prompts
- Action Nodes - 14 deterministic node types for workflow graphs
- Benchmarking - Performance measurement with
cargo adk bench
Agent Client Protocol
Use an external coding agent from ADK-Rust, or expose an ADK-Rust agent to an editor through stable ACP v1.
- Architecture and concepts - Client/host and coding-agent roles, sessions, capabilities, and protocol flow
- ACP client and host - Delegation, persistent sessions, streaming, cancellation, permissions, files, terminals, and MCP
- ACP agent server - Expose the Runner, tools, sessions, and live events through stdio
- Testing and support matrix - Verified interoperability and deliberately unadvertised features
Sessions & State
- Sessions - Session management and lifecycle
- State Management - Managing conversation state with prefixes
Memory
Long-term memory that outlives a session — the persistent counterpart to session state. A dedicated, newcomer-friendly guide to both the semantic store and the bi-temporal knowledge graph.
- Overview - Start here: the two kinds of memory, the mental model, install, and a quick start
- Concepts -
MemoryEntry, theMemoryServicetrait, search, project scoping, GDPR erasure - Backends - The six stores (InMemory, SQLite, Postgres+pgvector, Redis, MongoDB, Neo4j) and how to choose
- Knowledge Graph -
GraphMemoryService: entities, observations, relations, and why bi-temporal matters - Tools & Agents - Wiring memory into agents;
remember/relateand the memory tools
Callbacks & Events
- Callbacks - Intercept and customize agent behavior
- Events - Understanding the event system and conversation history
Artifacts
- Artifacts - Binary data storage and retrieval
Observability
- Telemetry - Logging, tracing, and monitoring
Deployment
- Launcher - Running agents in console or server mode
- Server - REST API and web UI integration
- A2A Protocol - Agent-to-Agent communication
- Agentic Web Protocol - AWP protocol for agent-native web services
Evaluation
- Agent Evaluation - Testing and validating agent behavior
- Benchmark Results - Published performance comparison data
Managed Agents
- Managed Agent Runtime - Provider-neutral, durable, resumable agent execution engine (Experimental)
Security
- Access Control - Role-based permissions and audit logging
- Guardrails - PII redaction, content filtering, schema validation
- Memory - Long-term semantic memory for agents
- Payments and Commerce - Agentic commerce journeys, protocol support, and validation paths
Studio
- ADK Studio - Visual development environment for building agents
- Action Nodes - Non-LLM programmatic nodes for automation workflows
- Triggers - Webhook, schedule, and event triggers for workflows
Development
- Development Guidelines - Contributing guide and best practices
- Performance 0.8 - Optimization release examples and adoption-focused validation
Validation Status
Copy-paste Cargo commands and dependency snippets in the README and official docs are validated by scripts/check-doc-examples.sh. CI also checks cargo-adk scaffolds with scripts/check-cargo-adk-templates.sh, rejects duplicate example target names with scripts/check-example-name-collisions.sh, and compiles workspace examples with cargo check --workspace --examples.