pub enum EventKind {
RunStarted {
agent: String,
input: Message,
},
ModelCalled {
step: u32,
response: ModelResponse,
cost_usd: Option<f64>,
duration_ms: u64,
},
ModelFailed {
step: u32,
error: String,
usage: Usage,
cost_usd: Option<f64>,
},
ToolDenied {
call_id: String,
tool: String,
reason: String,
},
ApprovalRequested {
call_id: String,
tool: String,
input: Value,
reason: String,
},
ApprovalDecided {
call_id: String,
approved: bool,
by: Option<String>,
note: Option<String>,
},
ToolCompleted {
call_id: String,
tool: String,
output: Value,
is_error: bool,
duration_ms: u64,
},
BudgetExceeded {
reason: String,
},
RunCompleted {
output: String,
structured: Option<Value>,
},
FinishRejected {
step: u32,
reason: String,
},
RunFailed {
error: String,
},
}Variants§
RunStarted
ModelCalled
ModelFailed
Recorded for audit; does not change state. A terminal failure is
followed by RunFailed.
Fields
ToolDenied
ApprovalRequested
ApprovalDecided
ToolCompleted
BudgetExceeded
RunCompleted
Fields
FinishRejected
A final answer failed the finish schema; the model is asked again.
RunFailed
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventKind
impl<'de> Deserialize<'de> for EventKind
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
impl StructuralPartialEq for EventKind
Auto Trait Implementations§
impl Freeze for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnsafeUnpin for EventKind
impl UnwindSafe for EventKind
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