能力标签
⚙️
Agent工作流

Rust Agent Development Kit (ADK-Rust)

基于 Rust · 无代码搭建完整 AI 自动化流程
英文名:adk-rust
⭐ 347 Stars 🍴 57 Forks 💻 Rust 📄 NOASSERTION 🏷 AI 7.5分
7.5AI 综合评分
workflowadkadk-agentadk-artifactadk-cliadk-googlerust
⚙️ 配置说明
✦ AI Skill Hub 推荐

经 AI Skill Hub 精选评估,Rust Agent Development Kit (ADK-Rust) 获评「推荐使用」。这款Agent工作流在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。

📚 深度解析
Rust Agent Development Kit (ADK-Rust) 是一套完整的 AI Agent 自动化工作流方案。随着 AI 能力的不断提升,基于 Agent 的自动化工作流正在成为提升个人和团队效率的核心方式。区别于传统的 RPA 自动化(模拟鼠标键盘操作),AI Agent 工作流通过理解任务意图、动态规划执行路径,能够处理更复杂的非结构化任务。

Rust Agent Development Kit (ADK-Rust) 工作流的设计遵循"最小配置,最大复用"原则:核心逻辑已经封装好,用户只需配置自己的 API Key 和业务参数即可快速上手。工作流内置错误处理和重试机制,在网络波动或 API 限速等情况下仍能稳定运行,适合作为生产环境的自动化基础设施。

在实际部署时,建议先在测试环境中运行 3-5 次,验证各个环节的输出结果符合预期,再部署到生产环境。AI Skill Hub 评分 7.5 分,是同类 Agent 工作流中的精选推荐。
📋 工具概览

Rust Agent Development Kit (ADK-Rust) 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。

GitHub Stars
⭐ 347
开发语言
Rust
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
NOASSERTION
AI 综合评分
7.5 分
工具类型
Agent工作流
Forks
57
📖 中文文档
以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

Rust Agent Development Kit (ADK-Rust) 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。

📌 核心特色
  • 可视化 Agent 工作流编排,无需编写复杂代码
  • 支持多步骤自动化任务链,实现全流程无人值守
  • 与外部 API、数据库和第三方服务无缝集成
  • 内置错误处理与自动重试机制,保障稳定运行
  • 提供可复用的自动化模板,快速在同类场景部署
🎯 主要使用场景
  • 自动化日常重复性工作,将精力集中于创造性任务
  • 构建数据采集 → 处理 → 输出的完整自动化管线
  • 实现跨平台、跨系统的数据流转和业务协同
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:cargo install(推荐)
cargo install adk-rust

# 方式二:从源码编译
git clone https://github.com/zavora-ai/adk-rust
cd adk-rust
cargo build --release
# 二进制在 ./target/release/adk-rust
📋 安装步骤说明
  1. 访问 GitHub 仓库获取工作流文件
  2. 在对应平台(Dify / Flowise / Make 等)中找到「导入工作流」功能
  3. 上传工作流文件
  4. 按照提示配置必要的环境变量和 API Key
  5. 运行测试确认流程正常后投入使用
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 查看帮助
adk-rust --help

# 基本运行
adk-rust [options] <input>

# 详细使用说明请查阅文档
# https://github.com/zavora-ai/adk-rust
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# adk-rust 配置说明
# 查看配置选项
adk-rust --config-example > config.yml

# 常见配置项
# output_dir: ./output
# log_level: info
# workers: 4

# 环境变量(覆盖配置文件)
export ADK_RUST_CONFIG="/path/to/config.yml"
📑 README 深度解析 真实文档 完整度 82/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

ADK-Rust

CI crates.io docs.rs Wiki License Rust GitHub Discussions

🚀 v0.9.1 Released! Composable Template System — 8 base templates, 9 addons, 5 enterprise patterns via cargo adk new --addon. Plus: cargo adk build (compile without deploying), provider-aware schema normalization, A2A Simple Scaffolding, and security fixes (hickory-proto, openssl, rubato, similar). See CHANGELOG for full details. Contributors: Many thanks to @mikefaille — AdkIdentity design, realtime audio, LiveKit bridge, skill system. @rohan-panickar — OpenAI-compatible providers, xAI, multimodal content. @dhruv-pant — Gemini service account auth. @tomtom215 — A2A Protocol v1.0.0 types crate (a2a-protocol-types), Foundation-verified wire types powering our A2A v1 layer. @danielsan — Google deps issue & PR (#181, #203), RAG crash report (#205). @CodingFlow — Gemini 3 thinking level, global endpoint, citationSources (#177, #178, #179). @ctylx — skill discovery fix (#204). @poborin — project config proposal (#176). @chillin-capybara — ACP integration, adk-acp crate. Get started → Announcements: ADK-Rust Roadmap launched for 2026, we welcome suggestions, comments and ideas. ADK Playground launched! You can now run 70+ ADK-Rust AI Agents online for free. Compile and click. No login, no install. https://playground.adk-rust.com (https://playground.adk-rust.com) And many more discussions, feel free to discuss: GitHub Discussions

---

Overview

ADK-Rust provides a comprehensive framework for building AI agents in Rust, featuring:

  • Composable Template System: 8 base templates, 9 addons, and 5 enterprise patterns via cargo adk new --addon for rapid project scaffolding
  • cargo adk build: Compile and verify your agent project without deploying — fast feedback loop for CI and local development
  • Type-safe agent abstractions with async execution and event streaming
  • Multiple agent types: LLM agents, workflow agents (sequential, parallel, loop), and custom agents
  • Realtime voice agents: Bidirectional audio streaming with OpenAI Realtime API and Gemini Live API
  • Tool ecosystem: Function tools, Google Search, MCP (Model Context Protocol) integration
  • Provider-aware schema normalization: MCP tools work across all providers — schemas normalized per-provider at request time
  • RAG pipeline: Document chunking, vector embeddings, semantic search with 6 vector store backends
  • Security: Role-based access control, declarative scope-based tool security, SSO/OAuth, audit logging
  • Agentic commerce: ACP and AP2 payment orchestration with durable transaction journals and evidence-backed recall
  • Agentic Web Protocol (AWP): Make websites agent-native with discovery, capability manifests, trust levels, rate limiting, consent, and health monitoring
  • Production features: Session management, artifact storage, memory systems with project-scoped isolation, REST/A2A APIs
  • Developer experience: Interactive CLI, 120+ working examples, comprehensive documentation

Status: Production-ready, actively maintained

Key Features

Production Features

  • Session Management: In-memory and SQLite-backed sessions with state persistence, encrypted sessions with AES-256-GCM and key rotation
  • Memory System: Long-term memory with semantic search, vector embeddings, and project-scoped isolation
  • Servers: REST API with SSE streaming, A2A v1.0.0 protocol for agent-to-agent communication
  • A2A Quick Start: A2aServer::quick_start(agent) — expose any agent via A2A in one line. Or use cargo adk new --template a2a to scaffold a complete project.
  • Guardrails: PII redaction, content filtering, JSON schema validation
  • Tool Authorization: Human-in-the-loop confirmation, before-tool callbacks, RBAC, graph interrupts
  • Payments: ACP and AP2 commerce support through adk-payments
  • Observability: OpenTelemetry tracing, structured logging

adk-rust = { version = "0.9.1", features = ["standard"] }

adk-rust = { version = "0.9.1", features = ["enterprise"] }


**Feature tiers:**

| 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 | Production deployment |
| `enterprise` | standard + realtime, browser, RAG, payments, AWP | Full-featured production |
| `full` | enterprise + audio, code execution, sandbox | Everything |

> **Upgrading from 0.7.x?** The default changed to a true minimal Gemini starter tier. Add only the feature set you use, such as `features = ["openai"]`, `features = ["standard"]`, or `features = ["standard", "cli-openai"]`.

Set your API key:
bash

Advanced Features

With Metal: features = ["metal"]

With CUDA: features = ["cuda"]

```

Features: Gemma 4 multimodal, ISQ/MXFP4 quantization, PagedAttention with prefix caching, multi-GPU splitting, LoRA/X-LoRA adapters, vision/speech/diffusion models, MCP integration.

Vertex AI Live (requires gcloud auth application-default login)

cargo run -p adk-realtime --example vertex_live_voice --features vertex-live cargo run -p adk-realtime --example vertex_live_tools --features vertex-live

LiveKit Bridge (requires LiveKit server)

cargo run -p adk-realtime --example livekit_bridge --features livekit,openai

OpenAI WebRTC (requires cmake)

cargo run -p adk-realtime --example openai_webrtc --features openai-webrtc

NVIDIA GPU (requires CUDA toolkit)

make build-mistralrs-cuda

Manual installation

Requires Rust 1.85 or later (Rust 2024 edition). Add to your Cargo.toml:

```toml [dependencies] adk-rust = "0.9.1" # Minimal (default): Gemini + agent runtime + sessions

Building from Source

Dev Environment Setup

```bash

Option B: Setup script (installs sccache, cmake, etc.)

./scripts/setup-dev.sh

Option C: Manual — just install sccache for faster builds

brew install sccache && echo 'export RUSTC_WRAPPER=sccache' >> ~/.zshrc ```

Build all crates (CPU-only, works on all systems)

make build

Build with all features (safe - adk-mistralrs excluded)

make build-all

Build all examples

make examples

Manual Build

```bash

Build workspace (CPU-only)

cargo build --workspace

Build with all features (works without CUDA)

cargo build --workspace --all-features

Build all workspace examples

cargo check --workspace --examples ```

or: cargo build --manifest-path adk-mistralrs/Cargo.toml

or: cargo build --manifest-path adk-mistralrs/Cargo.toml --features metal

or: cargo build --manifest-path adk-mistralrs/Cargo.toml --features cuda

```

Build the mistral.rs crate explicitly

cargo build --manifest-path adk-mistralrs/Cargo.toml

Minimal — just agents + Gemini + runner (fastest build)

adk-rust = { version = "0.9.1", default-features = false, features = ["minimal"] }

Building

```bash

Development build

cargo build

Optimized release build

cargo build --release ```

Quick Start

Basic Example (Gemini)

use adk_rust::prelude::*;
use adk_rust::Launcher;

#[tokio::main]
async fn main() -> AnyhowResult<()> {
    dotenvy::dotenv().ok();
    let api_key = std::env::var("GOOGLE_API_KEY")?;
    let model = GeminiModel::new(&api_key, "gemini-2.5-flash")?;

    let agent = LlmAgentBuilder::new("assistant")
        .description("Helpful AI assistant")
        .instruction("You are a helpful assistant. Be concise and accurate.")
        .model(Arc::new(model))
        .build()?;

    Launcher::new(Arc::new(agent)).run().await?;
    Ok(())
}

OpenAI Example

Enable OpenAI with adk-rust = { version = "0.9.1", features = ["openai"] }.

use adk_rust::prelude::*;
use adk_rust::Launcher;

#[tokio::main]
async fn main() -> AnyhowResult<()> {
    dotenvy::dotenv().ok();
    let api_key = std::env::var("OPENAI_API_KEY")?;
    let model = OpenAIClient::new(OpenAIConfig::new(api_key, "gpt-5-mini"))?;

    let agent = LlmAgentBuilder::new("assistant")
        .instruction("You are a helpful assistant.")
        .model(Arc::new(model))
        .build()?;

    Launcher::new(Arc::new(agent)).run().await?;
    Ok(())
}

OpenAI Responses API Example

Uses the /v1/responses endpoint — recommended for reasoning models (o3, o4-mini) and built-in tools:

use adk_rust::prelude::*;
use adk_rust::Launcher;
use adk_model::openai::{OpenAIResponsesClient, OpenAIResponsesConfig};

#[tokio::main]
async fn main() -> AnyhowResult<()> {
    dotenvy::dotenv().ok();
    let api_key = std::env::var("OPENAI_API_KEY")?;
    let config = OpenAIResponsesConfig::new(api_key, "gpt-4.1-mini");
    let model = OpenAIResponsesClient::new(config)?;

    let agent = LlmAgentBuilder::new("assistant")
        .instruction("You are a helpful assistant.")
        .model(Arc::new(model))
        .build()?;

    Launcher::new(Arc::new(agent)).run().await?;
    Ok(())
}

Anthropic Example

Enable Anthropic with adk-rust = { version = "0.9.1", features = ["anthropic"] }.

use adk_rust::prelude::*;
use adk_rust::Launcher;

#[tokio::main]
async fn main() -> AnyhowResult<()> {
    dotenvy::dotenv().ok();
    let api_key = std::env::var("ANTHROPIC_API_KEY")?;
    let model = AnthropicClient::new(AnthropicConfig::new(api_key, "claude-sonnet-4-6"))?;

    let agent = LlmAgentBuilder::new("assistant")
        .instruction("You are a helpful assistant.")
        .model(Arc::new(model))
        .build()?;

    Launcher::new(Arc::new(agent)).run().await?;
    Ok(())
}

DeepSeek Example

Enable DeepSeek with adk-rust = { version = "0.9.1", features = ["deepseek"] }.

use adk_rust::prelude::*;
use adk_rust::Launcher;

#[tokio::main]
async fn main() -> AnyhowResult<()> {
    dotenvy::dotenv().ok();
    let api_key = std::env::var("DEEPSEEK_API_KEY")?;

    // Standard chat model
    let model = DeepSeekClient::chat(api_key)?;

    // Or use reasoner for chain-of-thought reasoning
    // let model = DeepSeekClient::reasoner(api_key)?;

    let agent = LlmAgentBuilder::new("assistant")
        .instruction("You are a helpful assistant.")
        .model(Arc::new(model))
        .build()?;

    Launcher::new(Arc::new(agent)).run().await?;
    Ok(())
}

Groq Example (Ultra-Fast)

Enable Groq with adk-rust = { version = "0.9.1", features = ["groq"] }.

use adk_rust::prelude::*;
use adk_rust::Launcher;

#[tokio::main]
async fn main() -> AnyhowResult<()> {
    dotenvy::dotenv().ok();
    let api_key = std::env::var("GROQ_API_KEY")?;
    let model = GroqClient::new(GroqConfig::llama70b(api_key))?;

    let agent = LlmAgentBuilder::new("assistant")
        .instruction("You are a helpful assistant.")
        .model(Arc::new(model))
        .build()?;

    Launcher::new(Arc::new(agent)).run().await?;
    Ok(())
}

Ollama Example (Local)

Enable Ollama with adk-rust = { version = "0.9.1", features = ["ollama"] }.

use adk_rust::prelude::*;
use adk_rust::Launcher;

#[tokio::main]
async fn main() -> AnyhowResult<()> {
    dotenvy::dotenv().ok();
    // Requires: ollama serve && ollama pull llama3.2
    let model = OllamaModel::new(OllamaConfig::new("llama3.2"))?;

    let agent = LlmAgentBuilder::new("assistant")
        .instruction("You are a helpful assistant.")
        .model(Arc::new(model))
        .build()?;

    Launcher::new(Arc::new(agent)).run().await?;
    Ok(())
}

Examples

Examples live in the dedicated adk-playground repo (120+ examples covering every feature and provider). The examples documented in this repository are validated by scripts/check-doc-examples.sh, scripts/check-cargo-adk-templates.sh, and workspace example builds.

Running mistralrs Examples

```bash

Examples

The workspace keeps core crate examples close to the crates that own them, and standalone adoption examples under examples/. The public gallery remains adk-playground.

Validated examples in this repo include:

  • cargo run -p adk-rust --example performance_0_8_llm_agents --features openrouter — all 12 v0.8 optimization use cases with live LLM agents.
  • cargo run --manifest-path examples/tier_examples/standard/Cargo.toml --bin 11-standard-graph — standard-tier graph workflow.
  • cargo run --manifest-path examples/openai_responses/Cargo.toml — OpenAI Responses API example.
  • cargo run -p adk-realtime --example openai_session_update --features openai — OpenAI Realtime session mutation.
  • cargo run -p adk-realtime --example vertex_live_voice --features vertex-live — Vertex AI Live voice session.
  • cargo run --manifest-path examples/awp_agent/Cargo.toml — Agentic Web Protocol server example.

Configure via: aws configure

Option A: Nix/devenv (reproducible — identical on Linux, macOS, CI)

devenv shell

Production tier without CLI provider fan-out

adk-rust = { version = "0.9.1", features = ["standard"] }

Need server, auth, graph workflows, eval?

Graph-Based Workflows

Build complex, stateful workflows using the adk-graph crate (LangGraph-style):

use adk_graph::{prelude::*, node::AgentNode};
use adk_agent::LlmAgentBuilder;
use adk_model::GeminiModel;

// Create LLM agents for different tasks
let translator = Arc::new(LlmAgentBuilder::new("translator")
    .model(Arc::new(GeminiModel::new(&api_key, "gemini-2.5-flash")?))
    .instruction("Translate the input text to French.")
    .build()?);

let summarizer = Arc::new(LlmAgentBuilder::new("summarizer")
    .model(model.clone())
    .instruction("Summarize the input text in one sentence.")
    .build()?);

// Create AgentNodes with custom input/output mappers
let translator_node = AgentNode::new(translator)
    .with_input_mapper(|state| {
        let text = state.get("input").and_then(|v| v.as_str()).unwrap_or("");
        adk_core::Content::new("user").with_text(text)
    })
    .with_output_mapper(|events| {
        let mut updates = HashMap::new();
        for event in events {
            if let Some(content) = event.content() {
                let text: String = content.parts.iter()
                    .filter_map(|p| p.text())
                    .collect::<Vec<_>>()
                    .join("");
                updates.insert("translation".to_string(), json!(text));
            }
        }
        updates
    });

// Build graph with parallel execution
let agent = GraphAgent::builder("text_processor")
    .description("Translates and summarizes text in parallel")
    .channels(&["input", "translation", "summary"])
    .node(translator_node)
    .node(summarizer_node)  // Similar setup
    .edge(START, "translator")
    .edge(START, "summarizer")  // Parallel execution
    .edge("translator", "combine")
    .edge("summarizer", "combine")
    .edge("combine", END)
    .build()?;

// Execute
let mut input = State::new();
input.insert("input".to_string(), json!("AI is transforming how we work."));
let result = agent.invoke(input, ExecutionConfig::new("thread-1")).await?;

Features: - AgentNode: Wrap LLM agents as graph nodes with custom input/output mappers - Parallel & Sequential: Execute agents concurrently or in sequence - Cyclic Graphs: ReAct pattern with tool loops and iteration limiting - Conditional Routing: Dynamic routing via Router::by_field or custom functions - Checkpointing: Memory and SQLite backends for fault tolerance, durable resume from checkpoint after crash - Human-in-the-Loop: Dynamic interrupts based on state, resume from checkpoint - Streaming: Multiple modes (values, updates, messages, debug)

Run validated graph examples:

cargo run --manifest-path examples/tier_examples/standard/Cargo.toml --bin 11-standard-graph
cargo run --manifest-path examples/tier_examples/standard/Cargo.toml --bin 12-standard-sequential
cargo run --manifest-path examples/competitive_graph_resume/Cargo.toml

🎯 aiskill88 AI 点评 A 级 2026-05-24

该项目提供了一个开源的AI工作流解决方案,使用Rust语言构建模块化的AI代理,支持Google服务集成,值得关注。

⚡ 核心功能
👥 适合人群
自动化工程师和运维人员项目经理和业务分析师希望减少重复性工作的专业人士数字化转型团队
🎯 使用场景
  • 自动化日常重复性工作,将精力集中于创造性任务
  • 构建数据采集 → 处理 → 输出的完整自动化管线
  • 实现跨平台、跨系统的数据流转和业务协同
⚖️ 优点与不足
✅ 优点
  • +大幅减少重复性人工操作
  • +可视化流程,清晰直观
  • +可扩展性强,支持复杂场景
⚠️ 不足
  • 初始配置和调试需投入一定时间
  • 强依赖外部服务的稳定性
  • 复杂场景需具备一定技术基础
⚠️ 使用须知

该工具使用 NOASSERTION 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

📄 NOASSERTION — 请查阅原始协议条款了解具体使用限制。

🔗 相关工具推荐
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合
❓ 常见问题 FAQ
解答
💡 AI Skill Hub 点评

AI Skill Hub 点评:Rust Agent Development Kit (ADK-Rust) 的核心功能完整,质量良好。对于自动化工程师和运维人员来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。

⬇️ 获取与下载
📚 深入学习 Rust Agent Development Kit (ADK-Rust)
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 adk-rust
Topics workflowadkadk-agentadk-artifactadk-cliadk-googlerust
GitHub https://github.com/zavora-ai/adk-rust
License NOASSERTION
语言 Rust
🔗 原始来源
🐙 GitHub 仓库  https://github.com/zavora-ai/adk-rust 🌐 官方网站  https://adk-rust.com/

收录时间:2026-05-24 · 更新时间:2026-05-24 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。