pub struct TaskInput {
pub description: String,
pub prompt: String,
pub subagent_type: SubagentType,
pub run_in_background: Option<bool>,
pub model: Option<String>,
pub max_turns: Option<u32>,
pub resume: Option<String>,
}Expand description
Input for the Task tool - launches subagents.
Fields§
§description: StringA short (3-5 word) description of the task
prompt: StringThe task for the agent to perform
subagent_type: SubagentTypeThe type of specialized agent to use
run_in_background: Option<bool>Whether to run the agent in the background
model: Option<String>Optional model to use for this agent
max_turns: Option<u32>Maximum number of agentic turns
resume: Option<String>Optional agent ID to resume from
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskInput
impl<'de> Deserialize<'de> for TaskInput
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 TaskInput
Auto Trait Implementations§
impl Freeze for TaskInput
impl RefUnwindSafe for TaskInput
impl Send for TaskInput
impl Sync for TaskInput
impl Unpin for TaskInput
impl UnsafeUnpin for TaskInput
impl UnwindSafe for TaskInput
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