pub enum RunEvent {
RunStarted {
run_id: String,
session_id: String,
},
RunStep {
run_id: String,
step: usize,
},
LlmCalled {
run_id: String,
message_count: usize,
},
ToolCalled {
run_id: String,
tool_name: String,
},
RunFinished {
run_id: String,
output: String,
},
RunFailed {
run_id: String,
error: String,
},
BeforeToolCall {
run_id: String,
tool_name: String,
arguments: String,
},
AfterToolCall {
run_id: String,
tool_name: String,
result: String,
},
BeforeMessage {
run_id: String,
message_count: usize,
},
AfterMessage {
run_id: String,
response_length: usize,
},
}Expand description
Lifecycle events emitted during agent execution, used by CallbackHandler implementations.
Variants§
RunStarted
RunStep
LlmCalled
ToolCalled
RunFinished
RunFailed
BeforeToolCall
Emitted before a tool call is executed.
AfterToolCall
Emitted after a tool call completes.
BeforeMessage
Emitted before a message is sent to the model.
AfterMessage
Emitted after a model response is received.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunEvent
impl<'de> Deserialize<'de> for RunEvent
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 Eq for RunEvent
impl StructuralPartialEq for RunEvent
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