zavora-ai/adk-rust
Über uns
Rust Agent Development Kit (ADK-Rust): Entwickle KI-Agenten in Rust mit modularen Komponenten für Modelle, Tools, Speicher, Echtzeit-Sprache und mehr. ADK-Rust ist ein flexibles Framework für die einfache und leistungsstarke Entwicklung von KI-Agenten. Es ist modell- und deploymentunabhängig und für die neuesten KI-Modelle optimiert. Echtzeit-Sprachagenten werden ebenfalls unterstützt.
KI und maschinelles LernenWhat you can do
- The web home — Threads, Today and Memory & rules: decisions with full detail, what happened while you were away, what your agents may do, and Stop all; a developer panel with topology, protocols, state and telemetry - web home - adk-rust serve, adk-rust up
- Tools — #[tool] derives the JSON schema from your argument type - tools - coding_agent
- MCP clients and servers on rmcp 3 — tools, resources, prompts, elicitation, tasks - mcp - mcp_protocol_revisions
- Workflow agents — sequential, parallel, loop - agents - multi_perspective_analysis
Gemessener Sternzuwachs
- in 24h
- +3
- in 7 days
- +16
- in 15 days
- +29
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
OriginalADK-Rust
A Rust framework for building AI agents, including agents that work on their own inside limits you set. Model-agnostic, type-safe and async, across 51 publishable crates for agent orchestration.
v3.0.0 Released! This major release carries breaking API changes: tool calls run through one governed path, the server binds
127.0.0.1and refuses unlisted hosts and origins by default, and run budgets, durable runs, approvals, and audit records join the runtime, with the harness, the agent kernel and agent surfaces on top; see the migration guide and the CHANGELOG. All 51 crates are available on crates.io;adk-harness,adk-kernel,adk-surface,adk-site,adk-drivers,adk-website,adk-vision, andadk-vision-sam-codecare new in 3.0.0.Milestone: ADK-Rust crossed 1M total crates.io downloads across the workspace crates on November 26, 2026.
What's new in 3.0 lists every area the release adds. Coming from 2.x: see the 2.x to 3.0 migration guide and the CHANGELOG. Coming from 1.x: start with the 1.0 to 2.0 guide.
What 3.0 gives you: autonomous agents
An autonomous agent pursues a goal over many steps, wakes itself, and keeps working while nobody watches. 3.0 makes that safe to run:
| Property | What you get | Guide |
|---|---|---|
| Autonomous | A goal iterates until its check passes, parks on a decision and resumes at the same iteration; the kernel wakes an agent on a schedule, a file change, a webhook, a queue message, an approval or a finished run | plans and goals, wake-ups |
| Governed | Every tool call from every agent passes one path: tool policies (default-deny with DeclarativePolicy), approvals that hold a call across runs, run budgets and a daily spend cap, a kill switch that freezes every replica, an OS sandbox for the shell, and a signed audit log |
tool authorization |
| Durable | A run resumes from its checkpoint after a crash; a held call survives a restart and runs once when approved; the action ledger keeps a non-idempotent call from running twice | durable runtime |
| Observable and steerable | OpenTelemetry spans, the spend ledger, and adk-rust ps and top over the kernel's processes; a message sent to a running turn from code (Runner::steer), a surface or the kernel's control plane |
telemetry, steering |
| Always on | adk-rust up runs the harness as the agent kernel; the web home, the terminal, a phone and chat channels attach to the same running state |
kernel, surfaces |
Start with Build an autonomous agent: one agent from a
scaffold to running on its own, and which runtime fits your deployment. The harness and the
kernel that run it (adk-harness, adk-kernel) are Beta: their API may change in a minor
release (STABILITY.md).
Build and test an agent in five minutes
Scaffold an OpenAI agent with the HTTP runtime:
cargo install cargo-adk
cargo adk new quickstart_agent --template api --provider openai
cd quickstart_agent
cp .env.example .env
# Open .env and replace the OPENAI_API_KEY placeholder, then:
cargo run
The server listens on 127.0.0.1:8080 (set BIND_HOST=0.0.0.0 to listen on every interface).
Confirm it with:
curl -fsS http://127.0.0.1:8080/api/health
For a page where you talk to your agents, decide what they ask to do and review what they
did, install the CLI with cargo install adk-cli; adk-rust serve serves
the web home at
http://127.0.0.1:8080/ui/: Threads, Today and Memory & rules, in
light and dark.

The five-minute quickstart explains the generated files and the console-only alternative.
Add ADK-Rust to an existing project
[dependencies]
adk-rust = "3.0.0" # Gemini, agents, runner, sessions
# adk-rust = { version = "3.0.0", features = ["standard"] } # + server, auth, graph, eval
tokio = { version = "1", features = ["full"] } # #[tokio::main] in the example below
dotenvy = "0.15" # loads .env
| Tier | Includes | Use case |
|---|---|---|
minimal (default) |
Gemini provider, agents, runner, sessions | Fast starter agents |
standard |
minimal + OpenAI, Anthropic, tools, memory, telemetry, server, auth, graph, eval, guardrail, plugins, artifacts, skills, computer use | Serving an agent over HTTP |
enterprise |
standard + realtime, browser, RAG, payments, AWP, and autonomy: the harness and its kernel, background runs with cron and webhook wake-ups, approvals, SQLite stores, and the signed audit log |
Voice, retrieval, payments, and unattended agents |
full |
enterprise + audio, code execution, sandbox, code tools, the AWP website, vision, and the functional, node-cache, delta, time-travel and YAML graph capabilities | Everything that needs no external infrastructure |
A tier is a starting point, not a ceiling. Add any single capability on top of one
without moving to the next tier, so features = ["minimal", "audio"] gives you the
minimal build plus audio. adk-rust/Cargo.toml lists every feature you
can add this way.
Note: A tier selects crates, not a stability level. Each crate keeps its own tier in STABILITY.md:
standardand above include Beta crates, andfullincludes the Experimental website and vision crates.
One agent, end to end
use adk_rust::prelude::*;
use adk_rust::Launcher;
#[tokio::main]
async fn main() -> AnyhowResult<()> {
dotenvy::dotenv().ok();
let model = GeminiModel::new(&std::env::var("GOOGLE_API_KEY")?, "gemini-3.8-flash")?;
let agent = LlmAgentBuilder::new("assistant")
.instruction("You are a helpful assistant. Be concise and accurate.")
.model(Arc::new(model))
.build()?;
Launcher::new(Arc::new(agent)).run().await?;
Ok(())
}
Swap the provider by swapping the client. The agent, runner and tools are unchanged:
| Provider | Client | Feature | Key |
|---|---|---|---|
| Gemini | GeminiModel::new(key, model) |
default | GOOGLE_API_KEY |
| OpenAI | OpenAIClient::new(OpenAIConfig::new(key, model)) |
openai |
OPENAI_API_KEY |
| OpenAI Responses | OpenAIResponsesClient::new(OpenAIResponsesConfig::new(key, model)) |
openai |
OPENAI_API_KEY |
| Anthropic | AnthropicClient::new(AnthropicConfig::new(key, model)) |
anthropic |
ANTHROPIC_API_KEY |
| DeepSeek | DeepSeekClient::chat(key) |
deepseek |
DEEPSEEK_API_KEY |
| Groq | GroqClient::new(GroqConfig::gpt_oss_120b(key)) |
groq |
GROQ_API_KEY |
| Ollama | OllamaModel::new(OllamaConfig::new(model)) |
ollama |
none |
| Bedrock | BedrockClient::new(BedrockConfig::new(region, model_id)).await? |
bedrock |
AWS credential chain |
| mistral.rs | MistralRsModel::new(config).await? |
mistralrs |
none, local |
adk_rust::prelude re-exports every client above except MistralRsModel, which comes from
adk_rust::mistralrs (feature mistralrs) or the adk-mistralrs crate.
Or let it choose: adk_rust::run(instructions, input) picks a provider from the
environment, among those you compiled in.
Models
| Provider | Model Examples | Feature Flag |
|---|---|---|
| Gemini | gemini-3.8-flash (default), gemini-4-hydrogen, gemini-4-neon, gemini-4-carbon, gemini-4-argon, gemini-3.5-flash-lite |
(default) |
| OpenAI | gpt-6.1-sol (default), gpt-6-astra, gpt-6.1-terra, gpt-6-luna, gpt-5.6-terra |
openai |
| OpenAI Responses API | gpt-6.1-sol, gpt-6-astra, gpt-6-luna, gpt-5.6-terra |
openai |
| Anthropic | claude-sonnet-5-5 (default), claude-fable-5-2, claude-opus-5-5, claude-haiku-5-5 |
anthropic |
| DeepSeek | deepseek-flash (default; deepseek-v4-flash is accepted), deepseek-v4-pro |
deepseek |
| Groq | openai/gpt-oss-120b, openai/gpt-oss-20b |
groq |
| Ollama | qwen3.6:35b-a3b, qwen3.5, llama3.2:3b |
ollama |
| Fireworks AI | accounts/fireworks/models/kimi-k3 |
openai (preset) |
| Together AI | moonshotai/Kimi-K3.1-Pro |
openai (preset) |
| Mistral AI | mistral-large-latest |
openai (preset) |
| Perplexity | sonar-pro |
openai (preset) |
| Cerebras | gpt-oss-120b |
openai (preset) |
| SambaNova | gpt-oss-120b |
openai (preset) |
| xAI (Grok) | grok-4.7 |
openai (preset) |
| OrcaRouter | openai/gpt-5.6-terra, anthropic/claude-sonnet-5-5 |
openai (preset) |
| API Route | (listed by GET /v1/models) |
openai (preset) |
| Amazon Bedrock | us.anthropic.claude-sonnet-5-5, global.anthropic.claude-fable-5-2 |
bedrock |
| Azure AI Inference | (endpoint-specific) | azure-ai |
| mistral.rs | Gemma 4, Phi-3, Llama, Qwen 3.5, Voxtral, FLUX | adk-mistralrs |
Defaults are curated in adk_model::catalog and were checked on 17 November 2026.
Deployment-scoped providers such as Bedrock and Azure AI still require the model
or deployment identifier available in your own account and region.
Use adk_model::catalog::recommended_model(provider) for ADK's portable default,
MODEL_CATALOG for user-facing pickers, and validate_model_selection when
accepting configuration. Unknown IDs remain valid for private deployments and
new releases; known retired IDs include an actionable replacement.
What you can build
Each row links to its guide and names a runnable example. An example named without a path lives in adk-playground.
| Capability | Guide | Example |
|---|---|---|
| The web home — Threads, Today and Memory & rules: decisions with full detail, what happened while you were away, what your agents may do, and Stop all; a developer panel with topology, protocols, state and telemetry | web home | adk-rust serve, adk-rust up |
Tools — #[tool] derives the JSON schema from your argument type |
tools | coding_agent |
MCP clients and servers on rmcp 3 — tools, resources, prompts, elicitation, tasks |
mcp | mcp_protocol_revisions |
| Workflow agents — sequential, parallel, loop | agents | multi_perspective_analysis |
| Portable teams — validated handoff, delegation, policies, receipts and shared state | multi-agent | team_architectures |
| Graph workflows — checkpoints, durable resume, human-in-the-loop, subgraphs | graph-agents | graph_subgraph_claims |
| The harness — a governed coding agent: modes, approvals remembered per user, a sandboxed shell, team members, plan graphs and durable goals | harness | examples/harness_openai, examples/harness_anthropic |
| Coding agents — read, edit and run code in a confined workspace | coding-agent | coding_goal |
| Realtime voice and video — OpenAI Realtime, Gemini Live, Vertex, LiveKit, WebRTC | realtime | realtime_voice |
| Governed computer use — approval interrupts bound to a digest | computer-use | — |
| RAG — chunking, embeddings, vector search on five vector stores, Vertex AI RAG Engine retrieval | rag | — |
| Memory — semantic search, project isolation, a bi-temporal knowledge graph | memory | examples/skill_memory_improvements |
| Servers — REST with SSE, A2A v1.0.0, durable background runs, cron, webhook wake-ups, approvals | deployment | background_runs |
| Governance — tool policies, a replicated kill switch, run budgets, a spend ledger, an action ledger, and signed audit logs | tool authorization | durable_company |
| Gemini Enterprise Agent Platform — Agent Engine BYOC, managed state, memory, artifacts, telemetry and sandbox | agent-engine | vertex_sandbox |
Agentic Web Protocol 2.0 — signed site contracts and releases, verified agent identity, capabilities over A2A, MCP and HTTP, awp verify |
awp | awp_agent (AWP 1.x) |
| AWP websites — a static, signed site with an agent edge, run by a team of agents inside its owner's charter; migration from WordPress | website quickstart | examples/website |
| Agentic commerce — ACP and AP2 with durable journals | payments | payments |
| Editor interop — use an ACP coding agent as a tool, or expose yours | acp | — |
| Browser automation — WebDriver tools for navigation, extraction, forms, and screenshots | browser-tools | — |
| Evaluation — trajectory, rubric, LLM-judge, A/B, CI output | evaluation | eval_showcase |
| Guardrails, RBAC, SSO, audit logging | security | — |
| Observability — OpenTelemetry tracing, structured logging | observability | advanced_agents |
Scaffold a project
cargo install cargo-adk
cargo adk new my-agent # basic Gemini agent (alias for --template llm)
cargo adk new my-agent --template tools # agent with #[tool] custom tools
cargo adk new my-agent --template rag # RAG with vector search
cargo adk new my-agent --template api # REST server
cargo adk new my-agent --template graph # graph workflow with checkpoints
cargo adk new my-agent --template realtime # realtime voice agent
cargo adk new my-agent --template agent-engine # Gemini Enterprise Agent Engine BYOC
cargo adk new my-agent --template harness # governed harness: REPL with approvals, AGENTS.md, skills
cargo adk new my-agent --template autonomous # unattended agent: goals and a schedule on the kernel, durable stores
cargo adk new my-site --template website # AWP 2.0 website (Experimental): content, theme, charter, data, edge
cargo adk new my-desk --template vision # Document desk (Experimental): on-device perception, gated cloud describer
# Compose addons with a template
cargo adk new my-agent --template tools --addon telemetry --addon sessions
cargo adk new my-agent --addon mcp --addon guardrails
cd my-agent
cp .env.example .env # add your API key
cargo run
Agent types — the core agent structure.
| Template | What you get |
|---|---|
llm (alias basic) |
Single LLM agent with tool calling |
tools |
LLM agent with #[tool] custom tools |
sequential |
Two agents in order: a researcher, then a writer |
parallel |
Two specialists at once, then an aggregator that combines their answers |
loop |
A writer and a critic that loop until the critic calls exit_loop |
conditional |
Routes each request to a specialist on the model's classification |
graph |
Graph workflow with an agent node and per-step checkpoints |
realtime |
Gemini Live voice agent with transcripts |
rag |
Vector search over a knowledge base |
api |
REST server exposing the agent over HTTP |
agent-engine |
Gemini Enterprise Agent Engine BYOC container and Terraform deployment |
openai |
OpenAI-powered agent |
custom |
Manual Agent trait implementation that calls the model itself |
harness |
Governed harness agent: modes, approvals, a shell, AGENTS.md and skills, at the console or served |
autonomous |
An agent that runs unattended: a rubric-graded goal and a schedule on the kernel, durable stores, an approval-gated side effect, a budget and the OS sandbox |
website |
An AWP 2.0 site project and the edge binary that serves it |
vision |
A Document desk: on-device readers and a cloud describer behind the egress gate. It turns on vision-local, so the first build downloads ONNX Runtime and compiles oar-ocr-vl on Candle |
Note:
cargo-adkis Stable, and each crate a template builds on keeps its own tier:harnessandautonomousscaffold projects on Betaadk-harnessandadk-kernel, andwebsiteandvisionon Experimentaladk-website,adk-siteandadk-vision. See STABILITY.md.
Enterprise patterns — pre-composed, several capabilities already wired together.
| Template | What you get |
|---|---|
production |
llm served over A2A with the server, auth, sessions and telemetry addons |
multi-agent |
sequential with OpenTelemetry tracing |
pipeline |
sequential with tracing and an in-memory session service |
chatbot |
llm served over A2A with the sessions and memory addons |
a2a-server (alias a2a) |
A2A protocol server with session management |
managed-agents |
Anthropic Managed Agents API session with SSE streaming |
Addons — composable with most templates, and with each other. telemetry, server and
docker work as generated; the others turn on a feature and build a starting point that you
wire into the agent yourself.
| Addon | Adds |
|---|---|
telemetry |
OpenTelemetry tracing: OTLP export when OTEL_EXPORTER_OTLP_ENDPOINT is set |
auth |
The auth feature and AUTH_API_KEY; nothing checks requests until you add it |
sessions |
An in-memory session service to pass to a runner or server |
memory |
An in-memory semantic memory service to pass to a runner |
mcp |
The MCP client feature, with the connection code in a comment |
guardrails |
Input guardrails (harmful content, PII) to pass to the agent builder |
eval |
The eval feature, for scoring the agent against eval sets |
browser |
A WebDriver BrowserToolset to pass to the agent builder |
server |
The agent served over A2A |
docker |
Dockerfile, a static Dockerfile.static and .dockerignore |
CI generates every template, pattern and addon and compiles each project
(scripts/check-cargo-adk-templates.sh).
cargo adk build compiles the project without deploying, and cargo adk validate
checks an agent definition without building. cargo adk templates and
cargo adk addons print these lists.
Crates
A crate whose purpose names no tier is Stable. STABILITY.md assigns every crate's tier and lists the features that carry a lower one.
| Crate | Purpose | Key Features |
|---|---|---|
adk-core |
Foundational traits and types | Agent, Tool, Llm, Content, Event, AdkError, the governed tool path, agent identity, budgets, and durable runtime contracts |
adk-agent |
Agent implementations | LlmAgent, workflow agents, and portable TeamSpec / CompiledTeam composition |
adk-skill |
AgentSkills parsing and selection | Skill markdown parser, .skills discovery/indexing, lexical matching, prompt injection helpers |
adk-model |
LLM integrations | Gemini, OpenAI, Anthropic, DeepSeek, Groq, Ollama, Bedrock, Azure AI + OpenAI-compatible presets (Fireworks, Together, Mistral, Perplexity, Cerebras, SambaNova, xAI, OrcaRouter, API Route) |
adk-gemini |
Gemini client | Google Gemini API client with streaming and multimodal support |
adk-gcp |
Shared Google Cloud plumbing | ADC credential caching, bounded REST transport, Vertex resource names, and LRO polling |
adk-anthropic |
Anthropic client | Dedicated Anthropic API client with streaming, thinking, caching, citations, vision, PDF, pricing |
adk-mistralrs |
Native local inference (Beta) | mistral.rs v0.8 — Gemma 4, Qwen 3.5, Voxtral, ISQ/MXFP4 quantization, LoRA adapters |
adk-tool |
Tool system and extensibility | Typed Rust tools, provider-native tools, MCP clients and server SDK, and Vertex AI Example Store |
adk-devtools |
Coding-agent dev tools | read_file/write_file/edit_file/glob/grep/bash as a DevToolset, scoped to a sandboxed Workspace |
adk-session |
Session and state management | In-memory, SQLite, PostgreSQL, Redis, MongoDB, Firestore, Neo4j, and Vertex AI backends; encrypted sessions; durable stores (spend, action, approval, audit, lease, run, schedule, governance) on every backend |
adk-artifact |
Binary artifacts for agents | In-memory and GCS storage, versioning, MIME types, and image/PDF/video support |
adk-memory |
Long-term memory | Semantic stores, Vertex AI Memory Bank, project isolation, and bi-temporal knowledge graphs |
adk-payments |
Agentic commerce orchestration (Beta) | ACP/AP2 adapters, canonical transaction kernel, durable journals, evidence-backed payment flows |
awp-types |
AWP protocol types (Beta) | AWP 2.0 site contract, keys, releases, capabilities, status, events, consent, charter and signals, with JSON Schemas; the AWP 1.x types — zero adk-* deps |
adk-awp |
Agentic Web Protocol implementation (Beta) | AWP 2.0 routes and version negotiation, capabilities as tools, signing and the static bundle, the verifier and conformance kit; the AWP 1.x routes behind awp-v1 |
adk-site |
Site pipeline (Experimental) | Content, the built-in and sandboxed external generators, the launch gate, signed releases and the site log, host adapters, migration, constant updates |
adk-drivers |
Service drivers (Experimental) | DNS and registrar, email, analytics and search console, social and advertising, as kernel driver manifests with conformance suites |
adk-website |
The AWP website product (Experimental) | Site kinds, the team of eight agents, onboarding, capability packs, playbooks, incidents, alarms, the weekly review and deployment shapes |
adk-vision |
Local-first perception (Experimental) | Regions in source pixels with their transform chains, model manifests pinned by revision and SHA-256, detection, segmentation, document, embedding, description, tracking and editing traits with conformance suites, crop escalation and the egress gate |
adk-vision-sam-codec |
Meta sam-3.1 mask codec (Experimental, SAM License) |
A Rust port of the mask codec in Meta's @meta-sam/parser, distributed under the SAM License rather than Apache-2.0; adk-vision reaches it through the opt-in sam-codec feature after recorded licence acceptance |
adk-acp |
Agent Client Protocol integration (Beta) | Official stable v1 client and server, one-shot and persistent sessions, streaming, cancellation, async permissions, client files and terminals, per-session MCP, and editor-facing ADK agents |
adk-rag |
RAG pipeline | Document chunking, embeddings, vector search, reranking; in-memory, Qdrant, LanceDB, pgvector and Agent Retrieval vector stores, and Vertex AI RAG Engine retrieval |
adk-runner |
Agent execution runtime | Event streaming, session persistence, transfer enforcement, plugins, run budgets, spend and action ledgers, durable cancellation, Runner::close |
adk-server |
Production API servers | REST and SSE, A2A, loopback-first security defaults, durable background runs and cron, webhook wake-ups, approvals, governance endpoints, and Gemini Enterprise Agent Engine runtime dispatch |
adk-harness |
Governed harness agent (Beta) | HarnessAgent over LlmAgent: modes, standing approvals, host or OS-sandboxed bash, todos, AGENTS.md, skills, team members, plan graphs, durable goals |
adk-kernel |
Agent kernel (Beta) | Resident supervisor with a process table, wake sources (cron, file, webhook, queue, approval), an event bus, freeze across replicas, and a control plane; stores in memory and on SQLite, PostgreSQL, Redis, MongoDB, Firestore, and Neo4j |
adk-surface |
Agent surfaces (Beta) | SurfaceEngine turns sessions, decisions, and activity into plain words for every surface; the web home and its HTTP API (web), agent-drawn forms and tables (genui), and the workflow observer |
adk-cli |
Run and inspect agents from a terminal | adk-rust binary: interactive REPL, web server, coding agent (code/goal/ultracode), skills, graph checkpoint inspection, signed audit log verification; embeddable Launcher |
adk-realtime |
Real-time voice & multimodal agents | OpenAI Realtime + Gemini Live, bidirectional audio, video frames, VAD, affective dialogue, server-side tools via IntegratedRealtimeRunner |
adk-graph |
Graph-based workflows | LangGraph-style orchestration, state reducers, checkpointing (memory, SQLite, delta), durable resume, human-in-the-loop interrupts, subgraphs, with_goto routing, per-node retry and timeouts, time travel |
adk-browser |
Browser automation | WebDriver tools for navigation, forms, screenshots, and PDF generation, with private-network and upload confinement |
adk-computer-use |
Governed desktop automation (Beta) | Deterministic graph over computer-use-mcp: parallel observation, digest-bound approval interrupts, single-executor mutation, verification; wire contracts + tamper-evident evaluation receipts |
adk-eval |
Agent evaluation | Test definitions, trajectory validation, LLM-judged scoring, rubrics |
adk-guardrail |
Runtime validation | Input/output checks, PII redaction, and argument-level tool allow/deny/revision |
adk-auth |
Access control | Role-based permissions, declarative scope-based security, SSO/OAuth, audit logging |
adk-sandbox |
Sandboxed code execution | Process/WASM backends, OS-level sandbox profiles (Seatbelt on macOS, bubblewrap on Linux, a restricted-token tier on Windows) |
adk-telemetry |
Observability | OpenTelemetry tracing, structured logging, and Google Cloud export |
adk-managed |
Managed agent runtime (Experimental) | Provider-neutral agent execution, event replay, custom tool calls and confirmations parked on durable runs; sessions survive process loss with durable stores |
adk-enterprise |
Enterprise client SDK (Experimental) | HTTP/SSE client for managed agent service, zero runtime deps |
adk-plugin |
Lifecycle hooks | EnhancedPlugin trait, tool and model interception, priority pipeline, shared PluginContext |
adk-retry-reflect |
Retry and reflect plugin | Intercepts tool failures, injects reflection prompts, exponential backoff, circuit breaker |
adk-action |
Action node types | 14 deterministic node types, StandardProperties, variable interpolation — the shared types behind adk-graph's ActionNodeExecutor |
adk-code |
Code execution substrate | Process, Docker, embedded runtimes, and Vertex AI Agent Engine managed sandboxes |
adk-codeact-monty |
Python runtime for CodeAct (Experimental) | Pydantic Monty interpreter, sandboxed OS access, suspend and resume snapshots |
adk-audio |
Audio processing (Beta) | STT and TTS providers, Deepgram streaming, desktop capture and playback, VAD, ONNX models (Whisper, Moonshine, Kokoro) |
adk-bench |
Benchmarking (Experimental) | Framework runtime performance against real LLM APIs, and cross-framework comparison with Python ADK |
adk-deploy |
Deployment utilities | Targets, manifests, and Gemini Enterprise Agent Engine BYOC deployment |
adk-rust-macros |
Procedural macros | #[tool] with read_only/idempotent/concurrency_safe/long_running/lenient_args, #[entrypoint] and #[task] for the functional API |
cargo-adk |
Cargo subcommand | Project templates including the harness and Agent Engine BYOC, composable addons, eval runs, benchmarks, and deployment |
adk-rust |
Umbrella crate | Re-exports every crate above behind tiered feature presets — the one dependency most projects need |
Companion repos: adk-ui 3 builds on
adk-surface'sgenuifeature with extension catalogs (Agent-Drawn UI); its 2.x line is retired. adk-studio 3 designs, checks and runs agents and is in development against ADK-Rust 3.0 (ADK Studio); adk-playground holds more examples.
Performance
Measured with cargo adk bench in June 2026, same model, workload, and prompt for every
framework.
| Framework | Cold Start | Agent Loop Overhead (mean) | Agent Loop Overhead (P95) | Peak RSS |
|---|---|---|---|---|
| ADK-Rust | 109 ms | 568 μs | 615 μs | ~15 MB |
| Gemini Python SDK | 501 ms | 253 μs | 334 μs | 69.7 MB |
| LangGraph | 502 ms | 1,228 ms | 1,228 ms | 92.7 MB |
Bold marks the best value in each column. Cold start is process launch to first API call.
Overhead is turn time minus the LLM round trip, for one tool call on a fresh session. Apple
M-series, macOS, June 2026. cargo adk bench is behind cargo-adk's bench feature: install it
with cargo install cargo-adk --features bench, then run cargo adk bench --dry-run to see the
cost estimate first.
Long sessions
The framework's work per turn grows with the history a turn loads and sends the model: every
model call carries the whole conversation, as stateless chat APIs require. adk-bench's
keyless long-history benchmark measures that cost with a scripted model that answers
instantly, so the numbers below are the framework's own CPU time. A turn is a user message,
one tool call and the answer, four events; an iteration is one tool call inside a single
autonomous run.
| Workload, 1,000 steps | Per step, first 100 | Per step, last 100 | Process CPU, whole run | Peak RSS |
|---|---|---|---|---|
| 1,000 turns, whole session (4,000 events at the end) | 0.18–0.26 ms | 4.7–6.2 ms | 2.3–2.7 s | 288–290 MB |
1,000 turns, history_max_events = 50 |
71–77 μs | 62–64 μs | 0.07 s | 20 MB |
| One autonomous run, 1,000 tool calls (2,002 events) | 35–40 μs | 0.27–0.29 ms | 0.15–0.17 s | 27 MB |
Release build, in-memory sessions, 200-byte tool results, Apple M4 (10 cores, 24 GB), macOS
26.2, November 2026; process CPU time, ranges over three runs on a shared machine. Without a
window, a turn stays under 1 ms until the session holds about 1,300 events (330 turns), then
rises by about 1.5 ms per 1,000 more; RunConfig::history_max_events keeps it flat. The
default SQLite store adds its own per-turn cost, decoding the stored session from JSON.
Reproduce with:
cargo run -p adk-bench --release --example long_history -- turns 1000
cargo run -p adk-bench --release --example long_history -- turns 1000 --window 50
cargo run -p adk-bench --release --example long_history -- loop 1000
Rust & Beyond podcast
Each episode covers the release it shipped with; the numbers are that release's.
🎬 Rust & Beyond Podcast — Episode 4: Inside ADK-Rust v3
ADK-Rust v3.0.0 — Build autonomous agents. Eighteen chapters that start with a terminal closed on an agent mid-approval and end with a repaired checkout: agents that wake on a schedule, keep their place across a disconnect, and ask before they act. One million downloads across the crates.
▶️ Watch on YouTube — 47 min 4 sec · Hosts: James & Ada · Studio hosts with recorded runs of the examples · chaptered script
"I closed the terminal while your agent was asking permission. Did I just kill the job?" — Ada, opening the episode
Episode highlights
- From v1 to v3 — an agent that runs a test, an agent given the goal of fixing it, and an agent a failed build wakes
- Install from crates.io —
cargo add [email protected], thencargo adkand theadk-rustCLI - The Harness And The Kernel — goals with a check you control, wake-ups, budgets, and a job that waits for approval without calling the model
- Governed Tools — an approval covers one tool, one agent and one set of inputs; the server listens on your own machine by default
- Surfaces — Studio in VS Code, the agent web home and the Developer panel on the same job
- Realtime, Vision And Protocols — Mia answering by voice, a local model reading a checkout screenshot, MCP, A2A, ACP and AWP 2.0
- Live Field Test — a broken checkout, from two failing tests to the delivery price the customer sees
- Graphs And Memory — a graph that resumes and ships once, scoped memory, semantic facts and vector search
- Vision In Practice — Warehouse Watch flags a forklift near miss; Claims Desk catches one damage photo in two claims
Previous episodes
🎧 Episode 3: v2.0.0 — Agents That Act
Eight chapters on agents that run on their own and finish what they start: a workflow that resumes exactly where it stopped, a graph that changes course when the problem does, and approvals you can trust down to the digest. 42 crates, 4,300+ tests.
▶️ Watch on YouTube — 40 min 50 sec · Hosts: James (Fenrir) & Ada (Kore) · Video with slides
"Show me." — Ada, thirty seconds in, declining to be told about the visual builder
🎧 Episode 2: v1.0.0 — The Stable Foundation
A deep-dive into what shipped, who built it, and where it was going. 39 crates. 130K downloads. Semver stable.
▶️ Watch on YouTube — 10 min 12 sec · Hosts: James (Fenrir) & Ada (Kore)
"We believe the next generation of software will be built by composing autonomous agents, not by writing every line of logic by hand. And we believe Rust is the right language for the runtime those agents live in." — James
🎧 Episode 1: What is ADK-Rust?
2 min 21 sec · Generated entirely by ADK-Rust using Gemini 3.1 Flash TTS
How are these made?
Episodes 1 to 3 are generated with ADK-Rust's own audio capabilities — Chirp3-HD
multi-speaker TTS synthesis via adk-audio. The script, slide deck (Marp), and
synthesized audio segments are concatenated with ffmpeg into a video presentation.
Zero manual voice recording.
Episode 4 puts the two hosts in a studio, animated with HeyGen, and cuts to screen recordings of the compiled ADK-Rust 3.0 examples running in a terminal, VS Code and the Playground.
# Episode 4 assets
docs/podcast/episode-4-script.md # Chaptered script, eighteen chapters
docs/podcast/episode-4-thumbnail.jpg # Episode cover
# Episode 3 assets
docs/podcast/episode-3-script.md # Full script, eight chapters
docs/podcast/episode-3-thumbnail.png # Episode cover
The episode videos are not in the repository: episode 3 is about 900 MB and episode 4 about 200 MB, over GitHub's 100 MB per-file limit. The scripts are.
Develop
devenv shell # reproducible toolchain, or ./scripts/setup-dev.sh
make build # cargo build --workspace
make test # cargo nextest run --workspace
make clippy # -D warnings
AGENTS.md documents the conventions CI enforces, including the per-platform tool matrix and the CI cost tiers. CONTRIBUTING.md covers the workflow and the required checks.
Documentation
- Official docs — guides for every capability above
- Wiki — tutorials and quickstarts
- docs.rs — API reference
- Examples — the standalone scenario and validation crates; the teaching examples live in the playground
Companion projects
| Project | What it is |
|---|---|
| adk-studio | 3.x: designs, checks and runs agents — a project is two files that a canvas, the adk-studio CLI and an MCP server for coding agents edit; in development against ADK-Rust 3.0 (ADK Studio). 1.x is at the v1.0.1 tag |
| adk-ui | 3.x: extension catalogs for adk-surface's genui — charts, metrics, pages and scenes; 2.x is for ADK-Rust 2 only |
| adk-playground | Working examples, and a hosted playground |
Project
- ROADMAP.md — v3.0.0 (current). Longer-term direction and why both orchestration APIs are supported
- CHANGELOG.md — every release
- CONTRIBUTORS.md — the people who built this
- STABILITY.md — crate stability tiers and the deprecation policy
- Discussions — ideas and questions
Related: Google's ADK · MCP · Gemini API
Sponsors
ADK-Rust is Apache 2.0 and developed in the open. Sponsorship pays for the CI minutes, model-provider credits, and benchmark hardware the project runs on.
Thank you to our sponsors:
Become a sponsor — monthly tiers from $5, or a one-off contribution. Sponsors are listed here and on the sponsors page.
Star History
License
Apache 2.0. See LICENSE.
Ähnliche Projekte entdecken
Wird geladen…
