pub enum ExecutionEventData {
Show 16 variants
ExecutionStarted {
parent: Option<ParentLink>,
metadata: Option<Value>,
},
StepStarted {
step_id: StepId,
parent_step_id: Option<StepId>,
step_type: StepType,
name: String,
},
StepCompleted {
step_id: StepId,
output: Option<String>,
duration_ms: u64,
},
StepFailed {
step_id: StepId,
error: ExecutionError,
},
ExecutionPaused {
reason: String,
},
ExecutionResumed,
ExecutionCompleted {
output: Option<String>,
duration_ms: u64,
},
ExecutionFailed {
error: ExecutionError,
},
ExecutionCancelled {
reason: String,
},
ArtifactStored {
artifact_id: String,
step_id: StepId,
content_hash: String,
size_bytes: u64,
},
StepDiscovered {
step_id: StepId,
discovered_by: Option<StepId>,
source_type: StepSourceType,
reason: String,
depth: u32,
},
ToolCallStarted {
step_id: Option<StepId>,
tool_call_id: String,
tool_name: String,
input: Value,
},
ToolCallCompleted {
step_id: Option<StepId>,
tool_call_id: String,
output: Value,
},
CheckpointSaved {
step_id: Option<StepId>,
checkpoint_id: String,
state_hash: String,
},
GoalEvaluated {
step_id: Option<StepId>,
goal_id: String,
status: String,
score: Option<f64>,
reason: Option<String>,
},
Custom {
event_type: String,
data: Value,
},
}Expand description
Event data that can be stored
These events represent all state transitions in an execution. They can be replayed to reconstruct execution state.
Variants§
ExecutionStarted
Execution started
StepStarted
A step started
StepCompleted
A step completed successfully
StepFailed
A step failed
ExecutionPaused
Execution paused
ExecutionResumed
Execution resumed
ExecutionCompleted
Execution completed successfully
ExecutionFailed
Execution failed
Fields
§
error: ExecutionErrorExecutionCancelled
Execution cancelled
ArtifactStored
Artifact stored
StepDiscovered
A step was dynamically discovered during execution
Emitted when the agentic loop or LLM output identifies new work. Enables audit trails for discovered steps and replay of discovery sequences.
Fields
§
source_type: StepSourceTypeWhat triggered the discovery
ToolCallStarted
A tool call started (input available)
ToolCallCompleted
A tool call completed (output available)
CheckpointSaved
A checkpoint was saved
GoalEvaluated
A goal was evaluated
Fields
Custom
Custom event (for extensibility)
Trait Implementations§
Source§impl Clone for ExecutionEventData
impl Clone for ExecutionEventData
Source§fn clone(&self) -> ExecutionEventData
fn clone(&self) -> ExecutionEventData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecutionEventData
impl Debug for ExecutionEventData
Source§impl<'de> Deserialize<'de> for ExecutionEventData
impl<'de> Deserialize<'de> for ExecutionEventData
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 ExecutionEventData
impl RefUnwindSafe for ExecutionEventData
impl Send for ExecutionEventData
impl Sync for ExecutionEventData
impl Unpin for ExecutionEventData
impl UnsafeUnpin for ExecutionEventData
impl UnwindSafe for ExecutionEventData
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