pub enum RunEventKind {
Show 14 variants
ModelRequested,
ModelUsageRecorded {
record: UsageRecord,
},
ModelCandidatesDiscovered {
model_ids: Vec<String>,
},
ModelCandidateAttemptStarted {
model_id: String,
},
ModelCandidateAttemptFailed {
model_id: String,
category: ModelFailureCategory,
},
ModelFallback {
from_model_id: String,
to_model_id: String,
category: ModelFailureCategory,
},
ModelSelected {
model_id: String,
},
ModelRoutingFailed {
attempted_candidates: usize,
},
ModelResponded {
model_id: String,
tool_calls: usize,
},
ToolExecutionStarted {
tool_call_id: String,
name: String,
},
ToolExecutionFinished {
tool_call_id: String,
name: String,
error_category: Option<ErrorCategory>,
},
Cancelled,
TimedOut,
ModelFailed {
category: ErrorCategory,
},
}Variants§
ModelRequested
ModelUsageRecorded
Durable usage and cost input for one model invocation.
Fields
§
record: UsageRecordModelCandidatesDiscovered
ModelCandidateAttemptStarted
ModelCandidateAttemptFailed
ModelFallback
ModelSelected
ModelRoutingFailed
ModelResponded
ToolExecutionStarted
ToolExecutionFinished
Cancelled
TimedOut
ModelFailed
Fields
§
category: ErrorCategoryTrait Implementations§
Source§impl Clone for RunEventKind
impl Clone for RunEventKind
Auto Trait Implementations§
impl Freeze for RunEventKind
impl RefUnwindSafe for RunEventKind
impl Send for RunEventKind
impl Sync for RunEventKind
impl Unpin for RunEventKind
impl UnsafeUnpin for RunEventKind
impl UnwindSafe for RunEventKind
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