pub struct RunProgress {
pub current_phase: Option<String>,
pub phases: Vec<PhaseProgress>,
pub agents_started: u64,
pub agents_finished: u64,
pub agents_replayed: u64,
pub agents_skipped: u64,
pub agents_failed: u64,
pub log_lines: u64,
pub total_tokens: TokenUsage,
}Expand description
A point-in-time snapshot of a workflow run’s progress.
Fields§
§current_phase: Option<String>The most recently started phase, if any.
phases: Vec<PhaseProgress>One entry per phase, in start order.
agents_started: u64Total agents issued (across all phases and the no-phase default).
agents_finished: u64Agents that completed live.
agents_replayed: u64Agents whose output was replayed from the resume journal.
agents_skipped: u64Agents skipped (e.g. cancelled mid-run).
agents_failed: u64Agents that failed with an agent-domain error.
log_lines: u64Count of log() lines emitted.
total_tokens: TokenUsageAccumulated token usage across finished + replayed agents.
Implementations§
Source§impl RunProgress
impl RunProgress
Sourcepub fn apply(&mut self, event: &WorkflowEvent)
pub fn apply(&mut self, event: &WorkflowEvent)
Fold one WorkflowEvent into this snapshot.
The match is intentionally exhaustive (no _ arm): because this lives in
the same crate as WorkflowEvent, adding a variant there makes this
fail to compile until a handling decision is made here.
Trait Implementations§
Source§impl Clone for RunProgress
impl Clone for RunProgress
Source§fn clone(&self) -> RunProgress
fn clone(&self) -> RunProgress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RunProgress
impl Debug for RunProgress
Source§impl Default for RunProgress
impl Default for RunProgress
Source§fn default() -> RunProgress
fn default() -> RunProgress
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RunProgress
impl RefUnwindSafe for RunProgress
impl Send for RunProgress
impl Sync for RunProgress
impl Unpin for RunProgress
impl UnsafeUnpin for RunProgress
impl UnwindSafe for RunProgress
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