Expand description
§adk-runner
Agent execution runtime for ADK.
§Overview
This crate provides the execution runtime:
Runner- Manages agent execution with full contextRunnerConfig- Configuration for the runnerInvocationContext- Execution context implementationCallbacks- Hook points during execution
§Quick Start
use adk_runner::{Runner, RunnerConfig};
use std::sync::Arc;
// Configure runner with services
// let config = RunnerConfig {
// app_name: "my_app".to_string(),
// session_service: sessions,
// artifact_service: Some(artifacts),
// memory_service: None,
// };
//
// let runner = Runner::new(config);§Features
- Automatic session management
- Memory injection
- Artifact handling
- Callback hooks at every stage
Structs§
- Callbacks
- Collection of all callback types
- Invocation
Context - Mutable
Session - MutableSession wraps a session with shared mutable state.
- Runner
- Runner
Config
Type Aliases§
- After
Model Callback - Callback executed after model response
- After
Tool Callback - Callback executed after tool execution
- Before
Model Callback - Callback executed before calling the model
- Before
Tool Callback - Callback executed before tool execution