pub struct AgentDefinition {Show 16 fields
pub agent_type: String,
pub when_to_use: String,
pub tools: Option<Vec<String>>,
pub skills: Option<Vec<String>>,
pub color: Option<String>,
pub model: Option<String>,
pub background: Option<bool>,
pub system_prompt: String,
pub source: String,
pub filename: String,
pub plugin: String,
pub memory: Option<String>,
pub isolation: Option<String>,
pub effort: Option<u32>,
pub max_turns: Option<u32>,
pub disallowed_tools: Option<Vec<String>>,
}Expand description
Agent definition loaded from a plugin.
Fields§
§agent_type: String§when_to_use: String§tools: Option<Vec<String>>§skills: Option<Vec<String>>§color: Option<String>§model: Option<String>§background: Option<bool>§system_prompt: String§source: String§filename: String§plugin: String§memory: Option<String>§isolation: Option<String>§effort: Option<u32>§max_turns: Option<u32>§disallowed_tools: Option<Vec<String>>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 moreAuto 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