pub struct AgentTask {Show 19 fields
pub task_id: String,
pub model: String,
pub system_prompt: String,
pub user_prompt: 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 has_sub_agents: bool,
pub sub_agents: BTreeMap<String, SubAgentConfig>,
pub agent_type: Option<String>,
pub native_multimodal: bool,
pub extra_tool_names: Vec<String>,
pub exclude_tools: Vec<String>,
pub initial_messages: Vec<Message>,
pub initial_shared_state: Metadata,
pub metadata: Metadata,
}Fields§
§task_id: String§model: String§system_prompt: String§user_prompt: String§max_cycles: u32§memory_compact_threshold: u64§memory_threshold_percentage: u8§no_tool_policy: NoToolPolicy§allow_interruption: bool§use_workspace: bool§has_sub_agents: bool§sub_agents: BTreeMap<String, SubAgentConfig>§agent_type: Option<String>§native_multimodal: bool§extra_tool_names: Vec<String>§exclude_tools: Vec<String>§initial_messages: Vec<Message>§metadata: MetadataImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentTask
impl<'de> Deserialize<'de> for AgentTask
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
impl StructuralPartialEq for AgentTask
Auto Trait Implementations§
impl Freeze for AgentTask
impl RefUnwindSafe for AgentTask
impl Send for AgentTask
impl Sync for AgentTask
impl Unpin for AgentTask
impl UnsafeUnpin for AgentTask
impl UnwindSafe for AgentTask
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.