pub enum SubagentRecord {
Started(SubagentStartedRecord),
Handoff(SubagentHandoffRecord),
WrappedEvent(SubagentWrappedEventRecord),
UsageRolledUp(SubagentUsageRolledUpRecord),
Completed(SubagentCompletedRecord),
ChildLifecycle(ChildLifecycleRecord),
}Expand description
Enumerates the finite subagent record cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
Started(SubagentStartedRecord)
Use this variant when the contract needs to represent started; selecting it has no side effect by itself.
Handoff(SubagentHandoffRecord)
Use this variant when the contract needs to represent handoff; selecting it has no side effect by itself.
WrappedEvent(SubagentWrappedEventRecord)
Use this variant when the contract needs to represent wrapped event; selecting it has no side effect by itself.
UsageRolledUp(SubagentUsageRolledUpRecord)
Use this variant when the contract needs to represent usage rolled up; selecting it has no side effect by itself.
Completed(SubagentCompletedRecord)
Use this variant when the contract needs to represent completed; selecting it has no side effect by itself.
ChildLifecycle(ChildLifecycleRecord)
Use this variant when the contract needs to represent child lifecycle; selecting it has no side effect by itself.
Implementations§
Trait Implementations§
Source§impl Clone for SubagentRecord
impl Clone for SubagentRecord
Source§fn clone(&self) -> SubagentRecord
fn clone(&self) -> SubagentRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SubagentRecord
impl Debug for SubagentRecord
Source§impl<'de> Deserialize<'de> for SubagentRecord
impl<'de> Deserialize<'de> for SubagentRecord
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>,
Source§impl PartialEq for SubagentRecord
impl PartialEq for SubagentRecord
Source§fn eq(&self, other: &SubagentRecord) -> bool
fn eq(&self, other: &SubagentRecord) -> bool
self and other values to be equal, and is used by ==.