pub enum ChildKind {
RootTurn {
ctx: String,
event: Option<String>,
reservation: Option<u64>,
},
StepTurn {
run: String,
step: String,
reservation: Option<u64>,
},
Think {
purpose: String,
ctx: Option<String>,
reply_to: Option<(NodeId, u64)>,
extra: Value,
reservation: Option<u64>,
},
Subagent {
handle: String,
},
}Expand description
Why a child exists.
Variants§
RootTurn
A root/conversation turn for context ctx, triggered by inbox event event.
StepTurn
A workflow step turn (agent / think).
Think
A structured think serving an internal request (compaction, think tool,
preflight). reply_to = the requesting child + request id when a tool
call is waiting on it.
Fields
Subagent
A subagent (RFC 0009 payload) with a registry handle.
Trait Implementations§
impl StructuralPartialEq for ChildKind
Auto Trait Implementations§
impl Freeze for ChildKind
impl RefUnwindSafe for ChildKind
impl Send for ChildKind
impl Sync for ChildKind
impl Unpin for ChildKind
impl UnsafeUnpin for ChildKind
impl UnwindSafe for ChildKind
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