Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
ADK-Rust
Rust Agent Development Kit (ADK-Rust) - Build AI agents in Rust with modular components for models, tools, memory, RAG, security, realtime voice, and more.
A flexible framework for developing AI agents with simplicity and power. Model-agnostic, deployment-agnostic, optimized for frontier AI models. Includes support for realtime voice agents, RAG pipelines, graph workflows, declarative security, and 120+ working examples.
Supported Providers
| Provider | Feature Flag | Default Model |
|---|---|---|
| Gemini | gemini (default) |
gemini-2.5-flash |
| OpenAI | openai |
gpt-5-mini |
| Anthropic | anthropic |
claude-sonnet-4-5-20250929 |
| DeepSeek | deepseek |
deepseek-chat |
| Groq | groq |
llama-3.3-70b-versatile |
| Ollama | ollama |
llama3.2 |
| Fireworks AI | fireworks |
accounts/fireworks/models/llama-v3p1-8b-instruct |
| Together AI | together |
meta-llama/Llama-3.3-70B-Instruct-Turbo |
| Mistral AI | mistral |
mistral-small-latest |
| Perplexity | perplexity |
sonar |
| Cerebras | cerebras |
llama-3.3-70b |
| SambaNova | sambanova |
Meta-Llama-3.3-70B-Instruct |
| Amazon Bedrock | bedrock |
anthropic.claude-sonnet-4-20250514-v1:0 |
| Azure AI Inference | azure-ai |
(endpoint-specific) |
Quick Start
1. Create a new project:
&&
2. Add dependencies:
[]
= "0.3.2"
= { = "1.40", = ["full"] }
= "0.15"
3. Set your API key:
4. Write src/main.rs:
use *;
use Launcher;
use Arc;
async
5. Run:
Adding Tools
let agent = new
.instruction
.model
.tool
.build?;
Workflow Agents
// Sequential execution
let pipeline = new;
// Parallel execution
let parallel = new;
// Loop until condition (max 5 iterations)
let loop_agent = new
.with_max_iterations;
Multi-Agent Systems
let coordinator = new
.instruction
.model
.sub_agent
.sub_agent
.build?;
Realtime Voice Agents
Build voice-enabled AI assistants with bidirectional audio streaming:
use ;
let model: = new;
let agent = builder
.model
.instruction
.voice
.server_vad // Voice activity detection
.build?;
Features:
- OpenAI Realtime API & Gemini Live API
- Vertex AI Live with Application Default Credentials
- LiveKit WebRTC bridge for production audio routing
- Bidirectional audio (PCM16, G711, Opus)
- Server-side VAD
- Real-time tool calling
- Multi-agent handoffs
Graph-Based Workflows
Build complex workflows using LangGraph-style graph agents:
use *;
let agent = builder
.node_fn
.node_fn
.edge
.edge
.edge
.checkpointer
.build?;
Features:
- Cyclic graphs for ReAct patterns
- Conditional routing
- State management with reducers
- Checkpointing (memory, SQLite)
- Human-in-the-loop interrupts
Browser Automation
Give agents web browsing capabilities with 46 tools:
use ;
use Arc;
let config = new.webdriver_url;
let session = new;
let toolset = new;
let tools = toolset.all_tools; // 46 browser tools
let mut builder = new
.model;
for tool in tools
let agent = builder.build?;
Tools include navigation, extraction, forms, screenshots, JavaScript execution, and more.
Agent Evaluation
Test and validate agent behavior:
use ;
let evaluator = new;
let report = evaluator.evaluate_file.await?;
assert!;
RAG Pipeline
Build retrieval-augmented generation pipelines with adk-rag:
use ;
let pipeline = new
.chunker
.vector_store
.embedding_provider
.build?;
// Ingest documents
pipeline.ingest.await?;
// Search
let results = pipeline.search.await?;
Features:
- 3 chunking strategies (fixed-size, recursive, markdown-aware)
- 6 vector store backends (in-memory, Qdrant, Milvus, Weaviate, Pinecone, SurrealDB)
- Pluggable embedding providers and rerankers
- Ready-made
RagToolfor agent integration
Declarative Security
Tools declare their required scopes — the framework enforces automatically:
use FunctionTool;
use ;
// Tool declares what scopes it needs
let transfer = new
.with_scopes;
// Framework enforces before execution — no imperative checks in handlers
let guard = new;
let protected = guard.protect;
Features:
- Declarative
required_scopes()on theTooltrait ScopeGuardwith pluggable resolvers (context, static, custom)- Role-based access control with allow/deny rules
- SSO/OAuth integration (Auth0, Okta, Azure AD, Google OIDC)
- Audit logging for all access decisions
Deployment
# Console mode (default)
# Server mode
Installation Options
# Full (default)
= "0.3.2"
# Minimal
= { = "0.3.2", = false, = ["minimal"] }
# Custom
= { = "0.3.2", = false, = ["agents", "gemini", "tools"] }
# With new providers (forwarded to adk-model)
= { = "0.3.2", = ["fireworks", "together", "mistral", "perplexity", "cerebras", "sambanova", "bedrock", "azure-ai"] }
Documentation
- API Reference
- Official Guides
- Examples — 120+ working examples
- Wiki — Comprehensive guides and tutorials
License
Apache 2.0