pub struct AgentDefinition {
pub name: String,
pub description: String,
pub system_prompt: Option<String>,
pub model: Option<String>,
pub include_tools: Vec<String>,
pub exclude_tools: Vec<String>,
pub read_only: bool,
pub max_turns: Option<usize>,
}Expand description
Definition of a specialized agent type.
Fields§
§name: StringUnique agent type name.
description: StringDescription of what this agent specializes in.
system_prompt: Option<String>System prompt additions for this agent type.
model: Option<String>Model override (if different from default).
include_tools: Vec<String>Tools to include (if empty, use all).
exclude_tools: Vec<String>Tools to exclude.
read_only: boolWhether this agent runs in read-only mode.
max_turns: Option<usize>Maximum turns for this agent type.
Trait Implementations§
Source§impl Clone for AgentDefinition
impl Clone for AgentDefinition
Source§fn clone(&self) -> AgentDefinition
fn clone(&self) -> AgentDefinition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentDefinition
impl Debug for AgentDefinition
Source§impl<'de> Deserialize<'de> for AgentDefinition
impl<'de> Deserialize<'de> for AgentDefinition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AgentDefinition
impl RefUnwindSafe for AgentDefinition
impl Send for AgentDefinition
impl Sync for AgentDefinition
impl Unpin for AgentDefinition
impl UnsafeUnpin for AgentDefinition
impl UnwindSafe for AgentDefinition
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