pub struct SubagentParams {
prompt: String,
fork: bool,
}Expand description
Delegate a task to a subagent to explore questions or execute self-contained tasks without polluting your context with unrelated tool call results. The subagent will return its final response.
Fields§
§prompt: StringThe prompt to give to the subagent, which is all it will receive from you
fork: boolIf true, the subagent inherits the parent agent’s full conversation history, giving it complete context. If false (default), the subagent starts with a clean context containing only the prompt.
Trait Implementations§
Source§impl Debug for SubagentParams
impl Debug for SubagentParams
Source§impl<'de> Deserialize<'de> for SubagentParams
impl<'de> Deserialize<'de> for SubagentParams
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
Source§impl Display for SubagentParams
impl Display for SubagentParams
Source§impl JsonSchema for SubagentParams
impl JsonSchema for SubagentParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for SubagentParams
impl RefUnwindSafe for SubagentParams
impl Send for SubagentParams
impl Sync for SubagentParams
impl Unpin for SubagentParams
impl UnsafeUnpin for SubagentParams
impl UnwindSafe for SubagentParams
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