pub struct AgentDef {
pub name: String,
pub model: String,
pub system_prompt: Option<String>,
pub tools: Vec<AgentTool>,
pub max_turns: u32,
pub temperature: Option<f64>,
pub max_tokens: Option<u32>,
pub base_url: Option<String>,
pub api_key: Option<String>,
pub output_format: Option<String>,
}Expand description
Agent definition — runtime configuration for an AI agent.
Fields§
§name: String§model: String§system_prompt: Option<String>§tools: Vec<AgentTool>§max_turns: u32§temperature: Option<f64>§max_tokens: Option<u32>§base_url: Option<String>§api_key: Option<String>§output_format: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentDef
impl RefUnwindSafe for AgentDef
impl Send for AgentDef
impl Sync for AgentDef
impl Unpin for AgentDef
impl UnsafeUnpin for AgentDef
impl UnwindSafe for AgentDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more