pub struct AgentDefinition {Show 24 fields
pub description: String,
pub model: String,
pub backend: Option<String>,
pub language: String,
pub max_cycles: u32,
pub memory_compact_threshold: u64,
pub memory_threshold_percentage: u8,
pub no_tool_policy: NoToolPolicy,
pub allow_interruption: bool,
pub use_workspace: bool,
pub enable_todo_management: bool,
pub agent_type: Option<String>,
pub native_multimodal: bool,
pub enable_sub_agents: bool,
pub sub_agents: BTreeMap<String, SubAgentConfig>,
pub skill_directories: Vec<String>,
pub extra_tool_names: Vec<String>,
pub exclude_tools: Vec<String>,
pub bash_shell: Option<String>,
pub windows_shell_priority: Vec<String>,
pub bash_env: BTreeMap<String, String>,
pub metadata: Metadata,
pub system_prompt: Option<String>,
pub system_prompt_template: Option<String>,
}Fields§
§description: String§model: String§backend: Option<String>§language: String§max_cycles: u32§memory_compact_threshold: u64§memory_threshold_percentage: u8§no_tool_policy: NoToolPolicy§allow_interruption: bool§use_workspace: bool§enable_todo_management: bool§agent_type: Option<String>§native_multimodal: bool§enable_sub_agents: bool§sub_agents: BTreeMap<String, SubAgentConfig>§skill_directories: Vec<String>§extra_tool_names: Vec<String>§exclude_tools: Vec<String>§bash_shell: Option<String>§windows_shell_priority: Vec<String>§bash_env: BTreeMap<String, String>§metadata: Metadata§system_prompt: Option<String>§system_prompt_template: Option<String>Implementations§
Source§impl AgentDefinition
impl AgentDefinition
pub fn default_for_model(model: impl Into<String>) -> Self
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 (const: unstable) · 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 PartialEq for AgentDefinition
impl PartialEq for AgentDefinition
Source§fn eq(&self, other: &AgentDefinition) -> bool
fn eq(&self, other: &AgentDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AgentDefinition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.