pub struct Subagent {
pub run_id: SubagentRunId,
pub name: String,
pub description: Option<String>,
pub parent_subagent_run_id: Option<SubagentRunId>,
pub parent_tool_call_id: Option<ToolCallId>,
pub parent_message_id: Option<MessageId>,
pub status: SubagentStatus,
}Expand description
Fields§
§run_id: SubagentRunIdThe invocation’s id, as every event it produced carries it.
name: StringThe subagent’s declared type or name.
description: Option<String>Human-readable description, when announced.
parent_subagent_run_id: Option<SubagentRunId>The enclosing subagent, when subagents nest.
parent_tool_call_id: Option<ToolCallId>The tool call that spawned it, for the agents-as-tools pattern.
parent_message_id: Option<MessageId>The message that held that tool call.
status: SubagentStatusWhere the invocation stands.
Trait Implementations§
impl StructuralPartialEq for Subagent
Auto Trait Implementations§
impl Freeze for Subagent
impl RefUnwindSafe for Subagent
impl Send for Subagent
impl Sync for Subagent
impl Unpin for Subagent
impl UnsafeUnpin for Subagent
impl UnwindSafe for Subagent
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