rs-adk
Agent runtime for Gemini Live — tools, streaming, agent transfer, middleware. This is the L1 (runtime) crate that builds on rs-genai to provide agent lifecycle, tool dispatch, state management, and the three-lane processor architecture.
Features
- Agent trait with lifecycle hooks for text and live (voice) sessions
- Tool system —
ToolFunction,StreamingTool,TypedToolwith JSON Schema generation - State management — prefixed key-value store with atomic
modify(), delta tracking - Three-lane processor — fast (audio), control (tools/phases), telemetry (signals)
- LLM extractors — structured data extraction from conversation transcripts
- Phase system — instruction-scoped conversation phases with tool filtering
- Middleware chain — composable request/response processing pipeline
- Text agents — 15+ combinators (sequential, parallel, race, route, loop, etc.)
Quick Start
use *;
let tool = new;
let session = new
.model
.instruction
.tool
.build
.await?;
Documentation
License
Apache-2.0