pub enum Event {
StateUpdated {
step_id: Option<String>,
payload: Value,
},
ActionRequested {
action_id: String,
payload: Value,
},
ActionSucceeded {
action_id: String,
output: Value,
},
ActionFailed {
action_id: String,
error: String,
},
Interrupted {
value: Value,
},
Resumed {
value: Value,
},
Completed,
}Expand description
A single event in the kernel event log.
Covers: state updates, action lifecycle, interrupt/resume, completion. Aligns with existing trace (StepCompleted → StateUpdated + optional Action*; InterruptReached → Interrupted; ResumeReceived → Resumed).
Variants§
StateUpdated
State was updated by the reducer (e.g. after a node step).
Fields
ActionRequested
An external action was requested (tool, LLM, sleep, wait signal).
Fields
ActionSucceeded
The action completed successfully; output is stored for replay.
ActionFailed
The action failed; error is stored for audit and retry policy.
Interrupted
Execution was interrupted (e.g. human-in-the-loop).
Resumed
Execution was resumed with a value after an interrupt.
Completed
The run completed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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
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