pub enum Event {
Child(NodeId, AgentMsg),
Reaped(Reaped),
StepDone {
run: String,
step: String,
output: Value,
is_error: bool,
error: Option<String>,
tokens: u64,
},
ToolDone {
node: NodeId,
req: u64,
result: Value,
is_error: bool,
},
KnowledgeDone {
job: u64,
block: Option<String>,
},
Background {
id: String,
result: Value,
},
TimerFired {
id: String,
owner: Value,
payload: Value,
},
Inbox(InboxEvent),
SubscribeRead {
server: String,
uri: String,
content: Option<Value>,
},
Tick,
}Expand description
One loop event.
Variants§
Child(NodeId, AgentMsg)
A frame from a child (turn worker / subagent).
Reaped(Reaped)
A child exited (from the reaper).
StepDone
An executor thread finished a workflow step (mcp.tool, mapped tools…).
ToolDone
An executor thread finished a mapped/MCP call made on behalf of a child’s tool request.
KnowledgeDone
Knowledge auto-context retrieval finished for a staged turn.
Background
A background intelligence call finished. id names the caller
(goal.judge, human.judge:<gate>) so the loop can route the result
back to whoever asked without blocking on the call itself.
TimerFired
A durable timer fired.
Inbox(InboxEvent)
A durable event was accepted (already in the inbox).
SubscribeRead
A subscribe start node’s notify-then-read finished off-loop.
Tick
The 200 ms tick.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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