Expand description
§Agent Development Kit (ADK) for Rust
A flexible and modular framework for developing and deploying AI agents in Rust. ADK-Rust is model-agnostic and deployment-agnostic: this umbrella crate re-exports the ADK-Rust crates behind feature flags grouped into four tiers.
§Quick Start
Create your first AI agent in minutes:
use adk_rust::prelude::*;
use adk_rust::Launcher;
use std::sync::Arc;
#[tokio::main]
async fn main() -> std::result::Result<(), Box<dyn std::error::Error>> {
let api_key = std::env::var("GOOGLE_API_KEY")?;
let model = GeminiModel::new(&api_key, "gemini-3.8-flash")?;
let agent = LlmAgentBuilder::new("assistant")
.description("A helpful AI assistant")
.instruction("You are a friendly assistant. Answer questions concisely.")
.model(Arc::new(model))
.build()?;
// Run in interactive console mode
Launcher::new(Arc::new(agent)).run().await?;
Ok(())
}§Installation
Add to your Cargo.toml:
[dependencies]
adk-rust = "3.0.0"
tokio = { version = "1.40", features = ["full"] }
dotenvy = "0.15" # For loading .env files§Feature Presets
# Minimal (default) — agents, Gemini, runner, sessions (fastest build)
adk-rust = "3.0.0"
# Standard — minimal + OpenAI, Anthropic (and the adk-anthropic client), skills, graph,
# auth, server, eval, guardrail, plugin, artifacts, tools, memory, telemetry, computer-use
adk-rust = { version = "3.0.0", features = ["standard"] }
# Enterprise — standard + realtime, browser, rag, payments, awp, and autonomy: the
# harness, its kernel, durable and background runs, approvals and signed audit
adk-rust = { version = "3.0.0", features = ["enterprise"] }
# Full — enterprise + audio, code, sandbox, code-tools, the AWP website, vision, and the
# graph-functional, graph-node-cache, graph-delta, graph-time-travel, and graph-yaml capabilities
adk-rust = { version = "3.0.0", features = ["full"] }
# Custom — pick exactly what you need
adk-rust = { version = "3.0.0", default-features = false, features = [
"agents", "gemini", "tools", "sessions", "openai", "openrouter"
] }§Autonomous Agents
3.0 builds agents that work on their own inside limits you set: goals that iterate until a check passes and park on a decision; wake-ups on a schedule, a file change, a webhook or a queue message; one governed tool path with tool policies, approvals across runs, run budgets, spend caps, a kill switch and a signed audit log; and durable runs that resume after a crash.
| Module | Feature | What it holds |
|---|---|---|
harness | harness (in enterprise and full) | The governed harness agent: modes, standing approvals, a sandboxed shell, plans and durable goals |
kernel | harness-kernel (in enterprise and full) | The agent kernel adk-rust up runs: processes, wake sources, the event bus and the control plane |
surface | surface (in no tier) | The surface engine and the web home, over a harness or a kernel |
vision | vision (in full); vision-local adds the on-device backends | Local-first perception: regions in source pixels, verified weights, the egress gate, cloud describers and sam-3.1; with harness, the vision pack |
Build an autonomous agent takes one agent from a scaffold to running on its own.
§Agent Types
ADK-Rust provides several agent types for different use cases:
§LlmAgent - AI-Powered Reasoning
The core agent type that uses Large Language Models for intelligent
reasoning. GoogleSearchTool below requires the tools feature (included in
standard and above); the agent itself needs only the default tier:
use adk_rust::prelude::*;
use std::sync::Arc;
let api_key = std::env::var("GOOGLE_API_KEY").map_err(|e| AdkError::config(e.to_string()))?;
let model = GeminiModel::new(&api_key, "gemini-3.8-flash")?;
let agent = LlmAgentBuilder::new("researcher")
.description("Research assistant with web search")
.instruction("Search for information and provide detailed summaries.")
.model(Arc::new(model))
.tool(Arc::new(GoogleSearchTool::new())) // Add tools
.build()?;§Workflow Agents - Deterministic Pipelines
For predictable, multi-step workflows:
use adk_rust::prelude::*;
use std::sync::Arc;
// Sequential: Execute agents in order
let pipeline = SequentialAgent::new(
"content_pipeline",
vec![researcher, writer, reviewer]
);
// Parallel: Execute agents concurrently
let parallel = ParallelAgent::new(
"multi_analysis",
vec![analyst1, analyst2]
);
// Loop: Iterate until condition met
let loop_agent = LoopAgent::new("iterative_refiner", vec![refiner])
.with_max_iterations(5);§Multi-Agent Systems
Build hierarchical agent systems with automatic delegation:
use adk_rust::prelude::*;
use std::sync::Arc;
let coordinator = LlmAgentBuilder::new("coordinator")
.description("Development team coordinator")
.instruction("Delegate coding tasks to specialists.")
.model(model)
.sub_agent(code_agent) // Delegate to sub-agents
.sub_agent(test_agent)
.build()?;§Tools
Give your agents capabilities beyond conversation. The tool types below
require the tools feature (included in standard and above):
§Function Tools - Custom Operations
Convert any async function into a tool:
use adk_rust::prelude::*;
use adk_rust::serde_json::{json, Value};
use std::sync::Arc;
async fn get_weather(_ctx: Arc<dyn ToolContext>, args: Value) -> Result<Value> {
let city = args["city"].as_str().unwrap_or("Unknown");
// Your weather API call here
Ok(json!({
"temperature": 72.0,
"conditions": "Sunny",
"city": city
}))
}
let weather_tool = FunctionTool::new(
"get_weather",
"Get current weather for a city",
get_weather,
);§Built-in Tools
Ready-to-use tools included with ADK:
GoogleSearchTool- Web search via GoogleExitLoopTool- Control loop terminationLoadArtifactsTool- Access stored artifacts
§MCP Tools - External Integrations
Connect to Model Context Protocol servers using the rmcp crate:
use adk_rust::prelude::*;
use adk_rust::tool::McpToolset;
use rmcp::{ServiceExt, transport::TokioChildProcess};
use tokio::process::Command;
// Connect to an MCP server (e.g., filesystem, database)
let client = ().serve(TokioChildProcess::new(
Command::new("npx")
.arg("-y")
.arg("@modelcontextprotocol/server-filesystem")
.arg("/path/to/dir")
)?).await?;
let mcp_tools = McpToolset::new(client);
// Add all MCP tools to your agent
let agent = builder.toolset(Arc::new(mcp_tools)).build()?;§Sessions & State
Manage conversation context and working memory:
use adk_rust::prelude::*;
use adk_rust::session::{SessionService, CreateRequest};
use adk_rust::serde_json::json;
use std::collections::HashMap;
let session_service = InMemorySessionService::new();
// Create a session
let session = session_service.create(CreateRequest {
app_name: "my_app".to_string(),
user_id: "user_123".to_string(),
session_id: None,
state: HashMap::new(),
}).await?;
// Read state (State trait provides read access)
let state = session.state();
let config = state.get("app:config"); // Returns Option<Value>§Callbacks
Intercept and customize agent behavior:
use adk_rust::prelude::*;
use std::sync::Arc;
let agent = LlmAgentBuilder::new("monitored_agent")
.model(model)
// Modify or inspect model responses
.after_model_callback(Box::new(|_ctx, response| {
Box::pin(async move {
println!("Model responded");
Ok(Some(response)) // Return modified response or None to keep original
})
}))
// Track tool usage
.before_tool_callback(Box::new(|_ctx| {
Box::pin(async move {
println!("Tool about to be called");
Ok(None) // Continue execution
})
}))
.build()?;§Artifacts
Store and retrieve binary data (images, files, etc.). Requires the
artifacts feature (included in standard and above):
use adk_rust::prelude::*;
use adk_rust::artifact::{ArtifactService, SaveRequest, LoadRequest};
let artifact_service = InMemoryArtifactService::new();
// Save an artifact
let response = artifact_service.save(SaveRequest {
app_name: "my_app".to_string(),
user_id: "user_123".to_string(),
session_id: "session_456".to_string(),
file_name: "sales_chart.png".to_string(),
part: Part::Text { text: "chart data".to_string() },
version: None,
}).await?;
// Load an artifact
let loaded = artifact_service.load(LoadRequest {
app_name: "my_app".to_string(),
user_id: "user_123".to_string(),
session_id: "session_456".to_string(),
file_name: "sales_chart.png".to_string(),
version: None,
}).await?;§Deployment Options
§Console Mode (Interactive CLI)
use adk_rust::prelude::*;
use adk_rust::Launcher;
use std::sync::Arc;
// Interactive chat in terminal
Launcher::new(agent).run().await?;§Server Mode (REST API)
With the cli feature, Launcher is adk_cli::Launcher, which also serves the agent
over HTTP on 127.0.0.1:
cargo run -- serve --port 8080The server exposes GET /api/health, the session endpoints under /api/sessions and
/api/apps/{app}/users/{user}/sessions, POST /api/run/{app}/{user}/{session} (SSE),
and POST /api/run_sse. See adk-server for the full list. The web home of adk-surface
(feature surface) is served by the harness launcher, or mounted on a server you build
(spec 3.3 §5.1).
§Agent-to-Agent (A2A) Protocol
Expose your agent for inter-agent communication. Requires the server
feature (included in standard and above):
use adk_rust::server::{create_app_with_a2a, ServerConfig};
use adk_rust::AgentLoader;
// Create server with A2A protocol support
let config = ServerConfig::new(agent_loader, session_service);
let app = create_app_with_a2a(config, Some("http://localhost:8080"));
// Run the server (requires axum dependency)
// let listener = tokio::net::TcpListener::bind("127.0.0.1:8080").await?;
// axum::serve(listener, app).await?;§Observability
Built-in OpenTelemetry support for production monitoring. Requires the
telemetry feature (included in standard and above); OTLP export adds
telemetry-otlp:
use adk_rust::telemetry::init_telemetry;
// Basic telemetry with console logging
init_telemetry("my-agent-service")?;
// With `features = ["telemetry-otlp"]`, export spans to a collector instead:
// adk_rust::telemetry::init_with_otlp("my-agent-service", "http://localhost:4317")?;
// All agent operations now emit traces and metrics§Architecture
ADK-Rust uses a layered architecture for modularity:
┌─────────────────────────────────────────────────────────────┐
│ Application Layer │
│ Launcher • REST Server • A2A │
├─────────────────────────────────────────────────────────────┤
│ Runner Layer │
│ Agent Execution • Event Streaming │
├─────────────────────────────────────────────────────────────┤
│ Agent Layer │
│ LlmAgent • CustomAgent • Sequential • Parallel • Loop │
├─────────────────────────────────────────────────────────────┤
│ Service Layer │
│ Models • Tools • Sessions • Artifacts • Memory │
└─────────────────────────────────────────────────────────────┘§Feature Flags
| Feature | Description | Preset |
|---|---|---|
agents | Agent implementations | minimal (default) |
models | Model integrations | minimal (default) |
gemini | Gemini model support | minimal (default) |
runner | Execution runtime | minimal (default) |
sessions | Session management | minimal (default) |
openai | OpenAI model support | standard |
anthropic / anthropic-client | Anthropic model support / the adk-anthropic client | standard |
tools | Tool system | standard |
skills | Skill discovery | standard |
artifacts | Artifact storage | standard |
memory | Semantic memory | standard |
telemetry | OpenTelemetry | standard |
guardrail | Input/output validation | standard |
auth | Access control | standard |
plugin | Plugin system | standard |
server | HTTP server + A2A | standard |
graph | Graph workflows | standard |
eval | Agent evaluation | standard |
computer-use | Governed desktop-automation orchestration | standard |
realtime | Voice/audio streaming | enterprise |
browser | Browser automation | enterprise |
rag | RAG pipeline | enterprise |
payments | Agentic commerce (ACP/AP2) | enterprise |
awp | Agentic Web Protocol | enterprise |
autonomy | An agent that runs unattended: the harness and its kernel, durable and background runs, cron and webhook wake-ups, the approvals service, SQLite stores, signed audit | enterprise |
code, sandbox, code-tools | Code execution and sandboxed execution | full |
audio | Audio processing | full |
graph-functional, graph-node-cache, graph-delta, graph-time-travel, graph-yaml | Graph capabilities | full |
harness | The governed, durable harness agent (adk-harness) | enterprise |
harness-kernel | The agent kernel, the harness’s always-on form (adk-kernel) | enterprise |
website | The AWP website product (adk-website, adk-site) | full |
vision | Local-first perception (adk-vision): regions, manifests, the egress gate, cloud describers, sam-3.1, the image privacy guardrail | full |
vision-local | vision + the on-device backends: RF-DETR, EfficientSAM, SAM 2.1, SigLIP 2, PP-OCRv6, PaddleOCR-VL-1.6 | opt-in |
surface | Agent surfaces: the engine and the web home (adk-surface) | opt-in |
harness-browser, harness-computer-use, harness-payments, harness-voice, harness-managed | Harness packs | opt-in |
cli | CLI launcher with serve mode | opt-in |
managed-runtime | Managed agent runtime (adk-managed) | opt-in |
enterprise-client | Enterprise client SDK (adk-enterprise) | opt-in |
gemini-agent-platform | Every Gemini Enterprise Agent Platform integration except realtime transports and host-side deploy tooling | opt-in |
gemini-agent-platform-full | gemini-agent-platform + Vertex AI Live API (realtime stack) | opt-in |
gcp-deploy | Agent Engine deployment client (host-side; not part of gemini-agent-platform) | opt-in |
Production backends (postgres-session, redis-memory, …), additional providers,
and specialist integrations are opt-in features as well; Cargo.toml lists every one.
§Examples
The adk-playground repository holds the teaching examples. This repository’s examples directory holds the standalone scenario and release-validation crates that CI runs.
§Related Crates
ADK-Rust is composed of modular crates that can be used independently:
adk-core- Core traits and typesadk-agent- Agent implementationsadk-model- LLM integrationsadk-tool- Tool systemadk-session- Session managementadk-artifact- Artifact storageadk-runner- Execution runtimeadk-server- HTTP serveradk-telemetry- Observability
Re-exports§
pub use anyhow;pub use futures;pub use serde;pub use serde_json;pub use tokio;
Modules§
- acting
- Core traits and types.
- action_
ledger - Core traits and types.
- agent
agents - Agent implementations (LLM, Custom, Workflow agents).
- agent_
invoker - Core traits and types.
- agent_
loader - Core traits and types.
- anthropic_
client anthropic-client - Anthropic API client types and HTTP client.
- approval
- Core traits and types.
- artifact
artifacts - Artifact storage.
- audio
audio - Audio processing pipeline (experimental —
fullpreset). - audit_
log - Core traits and types.
- auth
auth - Authentication and access control.
- awp
awp - Agentic Web Protocol: discovery, capability manifests, trust, consent, and events for agent-facing websites.
- browser
browser - Browser automation (WebDriver).
- budget
- Core traits and types.
- callbacks
- Core traits and types.
- clock
- Core traits and types.
- code
code - Code execution substrate (experimental —
fullpreset). - codeact_
monty codeact-monty - Python
CodeRuntimefor the CodeActAgent, backed by the Monty interpreter (experimental). - computer
- Core traits and types.
- computer_
use computer-use - Graph, auth, and v8 wire contracts for safe computer-use orchestration.
- context
- Core traits and types.
- credential
- Core traits and types.
- decision
- Core traits and types.
- egress
- Core traits and types.
- error
- Core traits and types.
- eval
eval - Agent evaluation framework.
- event
- Core traits and types.
- event_
summarizer - Core traits and types.
- evidence
- Core traits and types.
- governance
- Core traits and types.
- governance_
state - Core traits and types.
- graph
graph - Graph-based workflow engine (LangGraph-inspired).
- grounding
- Core traits and types.
- guardrail
guardrail - Guardrails for safety and policy enforcement.
- harness
harness - The governed, durable harness agent (spec 3.1 §8.4).
- history
- Core traits and types.
- identity
- Core traits and types.
- instruction_
template - Core traits and types.
- intra_
compaction - Core traits and types.
- kernel
harness-kernel - The agent kernel, the always-on form of the harness (spec 3.2 §8.2).
- lease
- Core traits and types.
- memory
memory - Memory system with semantic search.
- metering
- Core traits and types.
- model
models - Model integrations (Gemini, etc.).
- payment
payments - Agentic commerce and payment orchestration.
- personas
eval - User personas for evaluation.
- plugin
plugin - Plugin system for extending agent behavior.
- policy
- Core traits and types.
- prelude
- Convenience prelude for common imports.
- principal
- Core traits and types.
- queue_
source - Core traits and types.
- rag
rag - Retrieval-Augmented Generation (RAG) pipeline.
- realtime
realtime - Real-time bidirectional streaming (voice, video).
- registry
server - Agent Registry REST API for agent discovery and management.
- request_
context - Core traits and types.
- review
- Core traits and types.
- run_
store - Core traits and types.
- runner
runner - Agent execution runtime.
- sandbox
sandbox - Isolated code execution runtime (experimental —
fullpreset). - schedule
- Core traits and types.
- schema_
adapter - Core traits and types.
- schema_
cache - Core traits and types.
- schema_
utils - Core traits and types.
- server
server - HTTP server (REST + A2A).
- session
sessions - Session management.
- shared_
state - Core traits and types.
- site
website - The site pipeline of an AWP 2.0 website (spec 3.5 §7.8): content as files, the built-in generator, the launch gate, signed releases in the site log, hosts, migration and freeze.
- skill
skills - AgentSkills parsing, indexing, and runtime injection helpers.
- spend
- Core traits and types.
- steering
- Core traits and types.
- subagent
- Core traits and types.
- subject
- Core traits and types.
- surface
surface - Agent surfaces: the engine every surface runs on, and the web home (spec 3.3).
- telemetry
telemetry - Telemetry (OpenTelemetry integration).
- tool
tools - Tool system and built-in tools.
- tool_
concurrency - Core traits and types.
- tool_
response - Core traits and types.
- types
- Core traits and types.
- usage
- Core traits and types.
- vision
vision - Local-first perception for agents (spec 3.7).
- webhook
webhooks - Core traits and types.
- webhook_
delivery webhook-delivery - Core traits and types.
- website
website - The AWP 2.0 website product (spec 3.5 Part C, §7.1, D-14): site kinds and their charter templates, the team of eight agents, onboarding, jobs, incidents, alarms and the weekly review.
Structs§
- Acting
Config - Core traits and types.
- Acting
Context - Core traits and types.
- Action
Record - Core traits and types.
- AdkError
- Core traits and types.
- AdkIdentity
- Core traits and types.
- Agent
Capabilities - Core traits and types.
- Agent
Credential - Core traits and types.
- AgentId
- Core traits and types.
- Agent
Principal - Core traits and types.
- Agent
Profile - Core traits and types.
- Agent
Topology - Core traits and types.
- Agent
Topology Member - Core traits and types.
- Agent
Topology Relationship - Core traits and types.
- Agent
Transfer Request - Core traits and types.
- AppName
- Core traits and types.
- Approval
Call - Core traits and types.
- Approval
Cursor - Core traits and types.
- Approval
Decision - Core traits and types.
- Approval
Delegation - Core traits and types.
- Approval
Notification - Core traits and types.
- Approval
Policy - Core traits and types.
- Approval
Request - Core traits and types.
- Approval
Request Query - Core traits and types.
- Approval
Route - Core traits and types.
- Approval
Scope - Core traits and types.
- Approval
Tick - Core traits and types.
- Artifact
Locator - Core traits and types.
- Batch
Call - Core traits and types.
- Batch
Group - Core traits and types.
- Blob
Resource Contents - Core traits and types.
- Budget
Exceeded - Core traits and types.
- Budget
Tracker - Core traits and types.
- Budget
Usage - Core traits and types.
- Builtin
Tool Governor - Core traits and types.
- Builtin
Tool Use - Core traits and types.
- Choice
Option - Core traits and types.
- Citation
Metadata - Core traits and types.
- Citation
Source - Core traits and types.
- Claimed
Run - Core traits and types.
- Compacted
History - Core traits and types.
- Concurrency
Permit - Core traits and types.
- Content
- Core traits and types.
- Context
Cache Config - Core traits and types.
- Credential
Secret - Core traits and types.
- Data
Destination - Core traits and types.
- Decider
- Core traits and types.
- Decision
- Core traits and types.
- Declarative
Policy - Core traits and types.
- Declarative
Policy Builder - Core traits and types.
- Delegation
Scope - Core traits and types.
- Delegation
Window - Core traits and types.
- Error
Details - Core traits and types.
- Error
Diagnostics - Core traits and types.
- Escalation
Step - Core traits and types.
- Event
- Core traits and types.
- Event
Actions - Core traits and types.
- Event
Compaction - Core traits and types.
- Event
Text Deltas - Core traits and types.
- Events
Compaction Config - Core traits and types.
- Execution
Identity - Core traits and types.
- File
Data Part - Core traits and types.
- Fire
Plan - Core traits and types.
- Function
Response Data - Core traits and types.
- Generate
Content Config - Core traits and types.
- Generic
Schema Adapter - Core traits and types.
- Governance
Control - Core traits and types.
- Governance
Mirror Config - Core traits and types.
- Governance
State - Core traits and types.
- Governed
Call - Core traits and types.
- Grounding
Source - Core traits and types.
- Held
Tool Call - Core traits and types.
- History
Compaction Request - Core traits and types.
- Image
Evidence - Core traits and types.
- InMemory
Action Ledger - Core traits and types.
- InMemory
Approval Store - Core traits and types.
- InMemory
Governance State Store - Core traits and types.
- InMemory
Lease Store - Core traits and types.
- InMemory
Queue Source - Core traits and types.
- InMemory
RunStore - Core traits and types.
- InMemory
Schedule Store - Core traits and types.
- InMemory
Spend Ledger - Core traits and types.
- Inbox
Page - Core traits and types.
- Inbox
Query - Core traits and types.
- Ingress
Report - Core traits and types.
- Inline
Data Part - Core traits and types.
- Intra
Compaction Config - Core traits and types.
- Invocation
Id - Core traits and types.
- Jitter
- Core traits and types.
- Launcher
runner - Lightweight console launcher — always available with the
runnerfeature. - Lease
- Core traits and types.
- Ledger
Answer - Core traits and types.
- Ledgered
Call - Core traits and types.
- LlmEvent
Summarizer - Core traits and types.
- LlmRequest
- Core traits and types.
- LlmResponse
- Core traits and types.
- LlmSpend
Estimate - Core traits and types.
- Manual
Clock - Core traits and types.
- Memory
Entry - Core traits and types.
- Metered
Llm - Core traits and types.
- Metered
Usage - Core traits and types.
- Model
Approver - Core traits and types.
- Model
Call Meter - Core traits and types.
- Model
Call Scope - Core traits and types.
- Model
Spend Hold - Core traits and types.
- Multi
Agent Loader - Core traits and types.
- Native
Compaction - Core traits and types.
- Native
Compaction Request - Core traits and types.
- Native
WebSearch - Core traits and types.
- NewRun
- Core traits and types.
- Pending
Approval - Core traits and types.
- Policy
Call - Core traits and types.
- Policy
Rule - Core traits and types.
- Queue
Ingress - Core traits and types.
- Queue
Message - Core traits and types.
- Request
Context - Core traits and types.
- Requested
Call - Core traits and types.
- Requested
Via - Core traits and types.
- Reservation
Id - Core traits and types.
- Resolved
Context - Core traits and types.
- Retry
Backoff - Core traits and types.
- Retry
Budget - Core traits and types.
- Retry
Hint - Core traits and types.
- Review
Scope - Core traits and types.
- RunBudget
- Core traits and types.
- RunConfig
- Core traits and types.
- RunConfig
Builder - Core traits and types.
- RunFilter
- Core traits and types.
- RunLimits
- Core traits and types.
- RunRecord
- Core traits and types.
- Runtime
Toolset - Core traits and types.
- Schedule
- Core traits and types.
- Schema
Cache - Core traits and types.
- Scoped
Token - Core traits and types.
- Screen
Point - Core traits and types.
- Screenshot
- Core traits and types.
- Sealed
Call - Core traits and types.
- Secret
Request - Core traits and types.
- Session
Id - Core traits and types.
- Shared
State - Core traits and types.
- Single
Agent Loader - Core traits and types.
- Spend
Key - Core traits and types.
- Spend
Limit - Core traits and types.
- Spend
Limits - Core traits and types.
- Static
Identity Source - Core traits and types.
- Static
Subject Delegation - Core traits and types.
- Steer
Receipt - Core traits and types.
- Steering
Inbox - Core traits and types.
- Steering
Marker - Core traits and types.
- Steering
Message - Core traits and types.
- Store
Approval Service - Core traits and types.
- Strictest
Policy - Core traits and types.
- Subagent
Launch - Core traits and types.
- Subagent
Parent - Core traits and types.
- Subagent
Record - Core traits and types.
- Subagent
Request - Core traits and types.
- Subagent
Scope - Core traits and types.
- Subagent
Start - Core traits and types.
- Subagent
Target - Core traits and types.
- Subject
Delegation Request - Core traits and types.
- Subject
Ref - Core traits and types.
- System
Clock - Core traits and types.
- Text
Resource Contents - Core traits and types.
- Tool
Approval - Core traits and types.
- Tool
Call View - Core traits and types.
- Tool
Callback Context - Core traits and types.
- Tool
Ceiling - Core traits and types.
- Tool
Concurrency Config - Core traits and types.
- Tool
Concurrency Manager - Core traits and types.
- Tool
Confirmation Request - Core traits and types.
- Tool
Declarations - Core traits and types.
- Tool
Declarations Keys - Core traits and types.
- Tool
Declarations Values - Core traits and types.
- Tool
Gate - Core traits and types.
- Tool
Origin - Core traits and types.
- Tool
Outcome - Core traits and types.
- Tool
Policy Request - Core traits and types.
- Tool
Profile - Core traits and types.
- Tool
Result View - Core traits and types.
- Tool
Review - Core traits and types.
- Unit
Rate - Core traits and types.
- Url
- Core traits and types.
- Usage
Call - Core traits and types.
- Usage
Hold - Core traits and types.
- Usage
Metadata - Core traits and types.
- Usage
Vector - Core traits and types.
- UserId
- Core traits and types.
- Withheld
Builtin Tool - Core traits and types.
- Workflow
Position - Core traits and types.
Enums§
- Action
Outcome - Core traits and types.
- Actuation
Output - Core traits and types.
- Agent
Interaction Mode - Core traits and types.
- Agent
Kind - Core traits and types.
- Agent
Relationship Kind - Core traits and types.
- Agent
Transfer Decision - Core traits and types.
- Approval
Action - Core traits and types.
- Approval
Event Kind - Core traits and types.
- Approval
Risk - Core traits and types.
- Approval
State - Core traits and types.
- Approver
Selector - Core traits and types.
- ArgPredicate
- Core traits and types.
- Backpressure
Policy - Core traits and types.
- Before
Model Result - Core traits and types.
- Budget
Limit - Core traits and types.
- Builtin
Tool Withholding - Core traits and types.
- Compaction
Trigger - Core traits and types.
- Computer
Action - Core traits and types.
- Computer
Action Kind - Core traits and types.
- Credential
Kind - Core traits and types.
- Data
Locality - Core traits and types.
- Effort
- Core traits and types.
- Embedded
Resource - Core traits and types.
- Enqueued
- Core traits and types.
- Error
Category - Core traits and types.
- Error
Component - Core traits and types.
- Evidence
- Core traits and types.
- Expiry
Action - Core traits and types.
- Finish
Reason - Core traits and types.
- Follow
Up - Core traits and types.
- Governance
Scope - Core traits and types.
- Identity
Error - Core traits and types.
- Include
Contents - Core traits and types.
- Missed
Fire Policy - Core traits and types.
- Mouse
Button - Core traits and types.
- Native
WebSearch Tool - Core traits and types.
- OnConflict
- Core traits and types.
- Part
- Core traits and types.
- Policy
Decision - Core traits and types.
- Principal
Error - Core traits and types.
- Requested
ViaKind - Core traits and types.
- Review
Verdict - Core traits and types.
- Revocation
Scope - Core traits and types.
- RunCheckpoint
Ref - Core traits and types.
- RunOutcome
- Core traits and types.
- RunState
- Core traits and types.
- Schedule
Spec - Core traits and types.
- Scroll
Direction - Core traits and types.
- Shared
State Error - Core traits and types.
- Spend
Error - Core traits and types.
- Spend
Period - Core traits and types.
- Steer
Outcome - Core traits and types.
- Streaming
Mode - Core traits and types.
- Subagent
Mode - Core traits and types.
- Subagent
Status - Core traits and types.
- Subject
Kind - Core traits and types.
- Tool
Authorization - Core traits and types.
- Tool
Confirmation Decision - Core traits and types.
- Tool
Confirmation Policy - Core traits and types.
- Tool
Effect - Core traits and types.
- Tool
Execution Strategy - Core traits and types.
- Tool
Result Status - Core traits and types.
- Usage
Unit - Core traits and types.
- Validation
Mode - Core traits and types.
Constants§
- APPROVAL_
REAPPLY_ GRACE - Core traits and types.
- BUDGET_
LIMIT_ KEY - Core traits and types.
- BUDGET_
RECORDED_ KEY - Core traits and types.
- BUILTIN_
TOOLS_ WITHHELD_ KEY - Core traits and types.
- BUILTIN_
TOOL_ ORIGIN - Core traits and types.
- CALLBACK_
PANICKED_ CODE - Core traits and types.
- CONFIRMATION_
PENDING_ STATUS - Core traits and types.
- DEFAULT_
APPROVAL_ PAGE - Core traits and types.
- DEFAULT_
RESERVATION_ TTL - Core traits and types.
- DEFAULT_
REVIEW_ TIMEOUT - Core traits and types.
- DEFAULT_
TOOL_ CONFIRMATION_ TIMEOUT - Core traits and types.
- DRAW_
TOOL_ NAMES - Core traits and types.
- DUPLICATE_
TOOL_ NAME_ CODE - Core traits and types.
- GENERATED_
CALL_ ID_ PREFIX - Core traits and types.
- GOVERNANCE_
FROZEN_ CODE - Core traits and types.
- GOVERNANCE_
STALE_ CODE - Core traits and types.
- INVALID_
TOOL_ ARGUMENTS_ KEY - Core traits and types.
- KEY_
PREFIX_ APP - Core traits and types.
- KEY_
PREFIX_ TEMP - Core traits and types.
- KEY_
PREFIX_ USER - Core traits and types.
- MAX_
INLINE_ DATA_ SIZE - Core traits and types.
- MAX_
STATE_ KEY_ LEN - Core traits and types.
- MODEL_
REVIEWER_ PREFIX - Core traits and types.
- NOT_
RUN_ PREFIX - Core traits and types.
- OUTCOME_
UNKNOWN_ STATUS - Core traits and types.
- PRINCIPAL_
NOT_ ALLOWED_ CODE - Core traits and types.
- REQUESTED_
CALL_ ID_ PREFIX - Core traits and types.
- REQUESTED_
CALL_ METADATA_ KEY - Core traits and types.
- RESULT_
WITHHELD_ STATUS - Core traits and types.
- REVIEW_
SOURCE - Core traits and types.
- SPEND_
LIMIT_ EXCEEDED_ CODE - Core traits and types.
- STATIC_
TOOL_ ORIGIN - Core traits and types.
- STEER_
INVALID_ MESSAGE_ CODE - Core traits and types.
- STEER_
NO_ ACTIVE_ RUN_ CODE - Core traits and types.
- SUBJECT_
MISMATCH_ CODE - Core traits and types.
- TOOL_
ERROR_ MESSAGE_ LIMIT - Core traits and types.
- TOOL_
INVALID_ ARGUMENTS_ CODE - Core traits and types.
- TOOL_
PERMISSION_ DENIED_ CODE - Core traits and types.
- TOOL_
PROGRESS_ CALL_ ID_ KEY - Core traits and types.
- TOOL_
PROGRESS_ STREAM_ KEY - Core traits and types.
- TOOL_
RESULT_ ERROR_ CATEGORY_ KEY - Core traits and types.
- TOOL_
RESULT_ ERROR_ CODE_ KEY - Core traits and types.
- TOOL_
RESULT_ STATUS_ KEY - Core traits and types.
- UNBOUNDED_
HOLD_ MICRO_ USD - Core traits and types.
- UPSTREAM_
EXCERPT_ BYTES - Core traits and types.
Traits§
- Action
Ledger - Core traits and types.
- Agent
- Core traits and types.
- Agent
Invoker - Core traits and types.
- Agent
Loader - Core traits and types.
- Approval
Notifier - Core traits and types.
- Approval
Resolution - Core traits and types.
- Approval
Router - Core traits and types.
- Approval
Service - Core traits and types.
- Approval
Store - Core traits and types.
- Approver
Directory - Core traits and types.
- Artifacts
- Core traits and types.
- Base
Events Summarizer - Core traits and types.
- Cache
Capable - Core traits and types.
- Callback
Context - Core traits and types.
- Choice
- Core traits and types.
- Clock
- Core traits and types.
- Computer
Actuator - Core traits and types.
- Credential
Broker - Core traits and types.
- Durable
RunStore - Core traits and types.
- Governance
State Store - Core traits and types.
- Governance
Watch - Core traits and types.
- History
Compactor - Core traits and types.
- Identity
Source - Core traits and types.
- Invocation
Context - Core traits and types.
- Invocation
Hooks - Core traits and types.
- Lease
Store - Core traits and types.
- Llm
- Core traits and types.
- Memory
- Core traits and types.
- Queue
Source - Core traits and types.
- Readonly
Context - Core traits and types.
- Readonly
State - Core traits and types.
- Requested
Call Seal - Core traits and types.
- Schedule
Store - Core traits and types.
- Schema
Adapter - Core traits and types.
- Secret
Service - Core traits and types.
- Session
- Core traits and types.
- Spend
Ledger - Core traits and types.
- State
- Core traits and types.
- Subagent
Host - Core traits and types.
- Subject
Delegation Policy - Core traits and types.
- Tool
- Core traits and types.
- Tool
Call Screen - Core traits and types.
- Tool
Confirmation Handler - Core traits and types.
- Tool
Context - Core traits and types.
- Tool
Policy - Core traits and types.
- Tool
Registry - Core traits and types.
- Tool
Result Screen - Core traits and types.
- Tool
Reviewer - Core traits and types.
- Toolset
- Core traits and types.
Functions§
- authorize_
tool_ call - Core traits and types.
- begin_
ledgered_ call - Core traits and types.
- bind_
markdown_ citations - Core traits and types.
- budget_
exceeded_ event - Core traits and types.
- builtin_
tool_ configuration - Core traits and types.
- confirm_
tool_ call - Core traits and types.
- confirmation_
decision_ available - Core traits and types.
- confirmation_
pending_ response - Core traits and types.
- decide
- Core traits and types.
- ensure_
crypto_ provider - Core traits and types.
- ensure_
unique_ tool_ names - Core traits and types.
- event_
belongs_ to_ branch - Core traits and types.
- firing_
idempotency_ key - Core traits and types.
- generate_
metered - Core traits and types.
- generate_
with_ budget - Core traits and types.
- guard_
callback - Core traits and types.
- held_
call_ compaction_ limit - Core traits and types.
- held_
call_ ledger_ key - Core traits and types.
- held_
tool_ calls - Core traits and types.
- inject_
session_ state - Core traits and types.
- interrupted_
call_ response - Core traits and types.
- invalid_
tool_ arguments - Core traits and types.
- invalid_
tool_ arguments_ reason - Core traits and types.
- is_
confirmation_ pending - Core traits and types.
- is_
not_ run - Core traits and types.
- is_
outcome_ unknown - Core traits and types.
- json_
digest - Core traits and types.
- json_
error_ summary - Core traits and types.
- manual_
idempotency_ key - Core traits and types.
- meter_
stream - Core traits and types.
- meter_
usage - Core traits and types.
- not_
run_ text - Core traits and types.
- nullable_
count - Core traits and types.
- outcome_
unknown_ response - Core traits and types.
- plan_
fires - Core traits and types.
- provider_
from_ env - Detect LLM provider from environment variables.
- record_
grounding_ sources - Core traits and types.
- record_
outcome_ unknown - Core traits and types.
- resource_
indicator - Core traits and types.
- result_
blocked_ response - Core traits and types.
- result_
withheld_ response - Core traits and types.
- run
agentsandrunnerandsessions - High-level single-turn agent invocation.
- screen_
tool_ result - Core traits and types.
- screen_
user_ input_ with - Core traits and types.
- subject_
mismatch_ error - Core traits and types.
- supersede_
pending_ responses - Core traits and types.
- tool_
call_ fingerprint - Core traits and types.
- tool_
error_ response - Core traits and types.
- untrusted_
block - Core traits and types.
- upstream_
excerpt - Core traits and types.
- usd_
to_ micro_ usd - Core traits and types.
- validate_
state_ key - Core traits and types.
- validate_
steering_ message - Core traits and types.
- vendor_
for_ model - Core traits and types.
- withdraw_
held_ call - Core traits and types.
- workflow_
resume_ positions - Core traits and types.
Type Aliases§
- After
Agent Callback - Core traits and types.
- After
Model Callback - Core traits and types.
- After
Tool Callback - Core traits and types.
- After
Tool Callback Full - Core traits and types.
- Before
Agent Callback - Core traits and types.
- Before
Model Callback - Core traits and types.
- Before
Tool Callback - Core traits and types.
- Event
Stream - Core traits and types.
- Global
Instruction Provider - Core traits and types.
- History
Processor - Core traits and types.
- Instruction
Provider - Core traits and types.
- LlmResponse
Stream - Core traits and types.
- OnTool
Error Callback - Core traits and types.
- Result
- Core traits and types.
- Tool
Declarations Iter - Core traits and types.
- Tool
Predicate - Core traits and types.