agent_runtime/types/agent.rs
1//! Agent identity, system instructions, tool grants, and iteration limit.
2
3/// Configuration for an agent.
4#[derive(Debug, Clone)]
5pub struct Agent {
6 pub id: String,
7 /// Model capabilities that must be available for every model invocation.
8 pub capabilities: Vec<agent_models::ModelCapability>,
9 pub system_prompt: Option<String>,
10 /// Names of the tools available to this agent.
11 pub tool_names: Vec<String>,
12 pub max_iterations: usize,
13}