#[non_exhaustive]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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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§
Source§impl<'de> Deserialize<'de> for Subagent
impl<'de> Deserialize<'de> for Subagent
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 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