pub enum AgentEvent {
Show 18 variants
RunStarted(RunStarted),
ContextBuilt(ContextBuilt),
ModelStarted(ModelStarted),
TextDelta(TextDelta),
ToolCallStarted(ToolCallStarted),
ToolCallDelta(ToolCallDelta),
ToolCallCompleted(ToolCallCompleted),
ToolExecutionStarted(ToolExecutionStarted),
ToolExecutionFinished(ToolExecutionFinished),
AssistantMessageCommitted(MessageCommitted),
ToolMessageCommitted(MessageCommitted),
UsageRecorded(UsageRecorded),
CacheMetrics(CacheMetrics),
RunCompleted(RunCompleted),
RunFailed(RunFailed),
RunCancelled(RunCancelled),
DoomLoopDetected(DoomLoopDetected),
CompactionCircuitOpened(CompactionCircuitOpened),
}Expand description
Event emitted during agent runtime execution.
Variants§
RunStarted(RunStarted)
Run has started.
ContextBuilt(ContextBuilt)
Context has been built.
ModelStarted(ModelStarted)
Model call has started.
TextDelta(TextDelta)
Text delta from model.
ToolCallStarted(ToolCallStarted)
Tool call has started.
ToolCallDelta(ToolCallDelta)
Tool call arguments delta.
ToolCallCompleted(ToolCallCompleted)
Tool call has completed.
ToolExecutionStarted(ToolExecutionStarted)
Tool execution has started.
ToolExecutionFinished(ToolExecutionFinished)
Tool execution has finished.
AssistantMessageCommitted(MessageCommitted)
Assistant message has been committed to store.
ToolMessageCommitted(MessageCommitted)
Tool message has been committed to store.
UsageRecorded(UsageRecorded)
Usage has been recorded.
CacheMetrics(CacheMetrics)
Prompt cache metrics from a single model call.
RunCompleted(RunCompleted)
Run has completed successfully.
RunFailed(RunFailed)
Run has failed.
RunCancelled(RunCancelled)
Run has been cancelled.
DoomLoopDetected(DoomLoopDetected)
Doom loop has been detected.
CompactionCircuitOpened(CompactionCircuitOpened)
Compaction circuit breaker has opened due to repeated failures.
Implementations§
Source§impl AgentEvent
impl AgentEvent
Trait Implementations§
Source§impl Clone for AgentEvent
impl Clone for AgentEvent
Source§fn clone(&self) -> AgentEvent
fn clone(&self) -> AgentEvent
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 AgentEvent
impl Debug for AgentEvent
Source§impl<'de> Deserialize<'de> for AgentEvent
impl<'de> Deserialize<'de> for AgentEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AgentEvent
impl Serialize for AgentEvent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AgentEvent
impl RefUnwindSafe for AgentEvent
impl Send for AgentEvent
impl Sync for AgentEvent
impl Unpin for AgentEvent
impl UnsafeUnpin for AgentEvent
impl UnwindSafe for AgentEvent
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