pub enum AgentEventType {
Show 14 variants
RunStarted,
MessageDelta,
ToolCallRequested,
ApprovalRequested,
ToolExecutionProgress,
ToolExecutionPreview,
HostedToolStarted,
HostedToolCompleted,
ModelRetryScheduled,
ModelRetryStarted,
TurnCheckpointed,
SessionCompacted,
SessionForked,
RunFinished,
}Expand description
Stable known event discriminators.
Variants§
RunStarted
A model/tool run started.
MessageDelta
A bounded streaming message fragment was produced.
ToolCallRequested
A complete canonical tool call was requested.
ApprovalRequested
Policy requires an approval decision.
ToolExecutionProgress
A tool emitted non-durable progress.
ToolExecutionPreview
A tool produced a non-durable execution preview.
HostedToolStarted
A provider-hosted tool started executing inside the model response.
HostedToolCompleted
A provider-hosted tool completed inside the model response.
ModelRetryScheduled
A retryable model failure entered bounded backoff.
ModelRetryStarted
A scheduled model retry started its next provider request.
TurnCheckpointed
A turn reached a durable checkpoint.
SessionCompacted
A session compaction was committed.
SessionForked
A session branch was forked.
RunFinished
A run reached a terminal state.
Implementations§
Source§impl AgentEventType
impl AgentEventType
Sourcepub const fn compatibility(self) -> EventCompatibility
pub const fn compatibility(self) -> EventCompatibility
Returns whether an older observer may skip this event kind.
Trait Implementations§
Source§impl Clone for AgentEventType
impl Clone for AgentEventType
Source§fn clone(&self) -> AgentEventType
fn clone(&self) -> AgentEventType
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 moreimpl Copy for AgentEventType
Source§impl Debug for AgentEventType
impl Debug for AgentEventType
Source§impl<'de> Deserialize<'de> for AgentEventType
impl<'de> Deserialize<'de> for AgentEventType
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 AgentEventType
Source§impl PartialEq for AgentEventType
impl PartialEq for AgentEventType
Source§impl Serialize for AgentEventType
impl Serialize for AgentEventType
impl StructuralPartialEq for AgentEventType
Auto Trait Implementations§
impl Freeze for AgentEventType
impl RefUnwindSafe for AgentEventType
impl Send for AgentEventType
impl Sync for AgentEventType
impl Unpin for AgentEventType
impl UnsafeUnpin for AgentEventType
impl UnwindSafe for AgentEventType
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