pub struct SubAgent {
pub tool_call_id: String,
pub agent_type: Option<String>,
pub description: Option<String>,
pub ts: Option<Timestamp>,
}Expand description
A sub-agent spawned via the Task (legacy) / Agent (current) tool.
Fields§
§tool_call_id: StringThe tool_use id of the spawning call (its ToolResult carries the
sub-agent’s report).
agent_type: Option<String>§description: Option<String>§ts: Option<Timestamp>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