adk-agent
Agent implementations for Rust Agent Development Kit (ADK-Rust, LLM, Custom, Workflow agents).
Overview
adk-agent provides ready-to-use agent implementations for the Rust Agent Development Kit (ADK-Rust):
- LlmAgent - Core agent powered by LLM reasoning
- CustomAgent - Define custom logic without LLM
- SequentialAgent - Execute agents in sequence
- ParallelAgent - Execute agents concurrently
- LoopAgent - Iterate until exit condition
- ConditionalAgent - Branch based on conditions
Installation
[]
= "0.1.8"
Or use the meta-crate:
[]
= { = "0.1.8", = ["agents"] }
Quick Start
LLM Agent
use LlmAgentBuilder;
use GeminiModel;
use Arc;
let model = new?;
let agent = new
.description
.instruction
.model
.tool
.build?;
Workflow Agents
use ;
// Sequential: A -> B -> C
let seq = new;
// Parallel: A, B, C simultaneously
let par = new;
// Loop: repeat until exit
let loop_agent = new;
Multi-Agent Systems
// Router with sub-agents
let router = new
.instruction
.sub_agent
.sub_agent
.build?;
Features
- Automatic tool execution loop
- Agent transfer between sub-agents
- Streaming event output
- Callback hooks at every stage
- Long-running tool support
Related Crates
- adk-rust - Meta-crate with all components
- adk-core - Core
Agenttrait - adk-model - LLM integrations
- adk-tool - Tool system
License
Apache-2.0
Part of ADK-Rust
This crate is part of the ADK-Rust framework for building AI agents in Rust.