pub enum ChildKind {
RootTurn {
ctx: String,
event: Option<String>,
reservation: Option<u64>,
msg_depth: u32,
},
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.
Fields
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, addressed by its registry handle rather than its node id so callers can keep referring to it across a restore.
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