pub struct RunEvent {
pub sequence: u64,
pub kind: RunEventKind,
pub iteration: Option<usize>,
pub tool_name: Option<String>,
pub model_id: Option<String>,
pub next_model_id: Option<String>,
pub model_candidates: Option<Vec<String>>,
pub attempted_candidates: Option<usize>,
pub error_category: Option<&'static str>,
pub occurred_at: SystemTime,
}Expand description
An immutable, ordered entry in a run’s lifecycle history.
Fields§
§sequence: u64Zero-based sequence number, monotonically increasing within a run.
kind: RunEventKind§iteration: Option<usize>Runtime iteration for model and tool events; absent for lifecycle events.
tool_name: Option<String>Tool name for tool execution events.
model_id: Option<String>Provider-qualified model identity associated with a routing event.
next_model_id: Option<String>Next provider-qualified candidate selected for a fallback attempt.
model_candidates: Option<Vec<String>>Deterministically ordered compatible model candidates.
attempted_candidates: Option<usize>Number of candidates attempted before routing terminated.
error_category: Option<&'static str>Stable error category; raw error messages are excluded.
occurred_at: SystemTimeTrait Implementations§
Auto Trait Implementations§
impl Freeze for RunEvent
impl RefUnwindSafe for RunEvent
impl Send for RunEvent
impl Sync for RunEvent
impl Unpin for RunEvent
impl UnsafeUnpin for RunEvent
impl UnwindSafe for RunEvent
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