pub enum PipelineEvent {
PipelineStarted {
pipeline_name: String,
run_id: String,
},
NodeStarted {
node_id: String,
handler_type: String,
},
NodeCompleted {
node_id: String,
status: StageStatus,
duration_ms: u64,
},
EdgeSelected {
from_node: String,
to_node: String,
edge_label: String,
selection_step: u8,
},
RetryScheduled {
node_id: String,
attempt: u32,
max_retries: u32,
delay_ms: u64,
},
GoalGateCheck {
node_id: String,
satisfied: bool,
},
CheckpointSaved {
node_id: String,
},
PipelineCompleted {
status: StageStatus,
total_duration_ms: u64,
nodes_executed: usize,
},
Error {
node_id: Option<String>,
message: String,
},
HumanInputRequested {
node_id: String,
question: String,
choices: Vec<String>,
},
HumanInputReceived {
node_id: String,
answer: String,
},
}Expand description
Events emitted during pipeline execution.
Variants§
PipelineStarted
Pipeline execution started.
NodeStarted
A node has started executing.
NodeCompleted
A node has completed.
EdgeSelected
An edge was selected for traversal.
RetryScheduled
A retry is about to happen.
GoalGateCheck
A goal gate check was performed.
CheckpointSaved
A checkpoint was saved.
PipelineCompleted
Pipeline execution completed.
Error
An error occurred.
HumanInputRequested
Human input requested.
HumanInputReceived
Human input received.
Implementations§
Source§impl PipelineEvent
impl PipelineEvent
pub fn pipeline_started(name: &str, run_id: &str) -> Self
pub fn node_started(id: &str, handler: &str) -> Self
pub fn node_completed(id: &str, status: StageStatus, duration_ms: u64) -> Self
pub fn edge_selected(from: &str, to: &str, label: &str, step: u8) -> Self
pub fn error(node_id: Option<&str>, message: &str) -> Self
Trait Implementations§
Source§impl Clone for PipelineEvent
impl Clone for PipelineEvent
Source§fn clone(&self) -> PipelineEvent
fn clone(&self) -> PipelineEvent
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 PipelineEvent
impl Debug for PipelineEvent
Source§impl<'de> Deserialize<'de> for PipelineEvent
impl<'de> Deserialize<'de> for PipelineEvent
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 PipelineEvent
impl RefUnwindSafe for PipelineEvent
impl Send for PipelineEvent
impl Sync for PipelineEvent
impl Unpin for PipelineEvent
impl UnsafeUnpin for PipelineEvent
impl UnwindSafe for PipelineEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more