#[non_exhaustive]pub enum AgentStreamEvent {
Show 18 variants
Started {
agent: String,
},
TurnStarted {
turn: u32,
},
Model {
turn: u32,
event: ModelStreamEvent,
},
ContextRetrieved {
source: String,
documents: usize,
},
CallableStarted {
turn: u32,
kind: CallableKind,
call: ToolCall,
},
CallableCompleted {
turn: u32,
kind: CallableKind,
call_id: String,
name: String,
success: bool,
},
UsageUpdated {
usage: Usage,
},
Completed {
outcome: AgentOutcome,
},
ConversationSummaryStarted {
checkpoint_id: CheckpointId,
through_sequence: ConversationSequence,
},
ConversationSummaryCommitted {
through_sequence: ConversationSequence,
usage: Usage,
},
ConversationCommitted {
outcome: AgentOutcome,
conversation_version: ConversationVersion,
},
TerminalRepairScheduled {
attempt: u32,
failure: TerminalRequirementFailure,
},
TurnReviewStarted {
turn: u32,
},
TurnReviewCompleted {
turn: u32,
verdict: TerminalReviewVerdictKind,
},
TurnReviewRepairScheduled {
attempt: u32,
turn: u32,
},
TerminalReviewStarted {
attempt: u32,
},
TerminalReviewCompleted {
attempt: u32,
verdict: TerminalReviewVerdictKind,
},
TerminalReviewRepairScheduled {
attempt: u32,
},
}Expand description
One real-time event from the canonical Agent execution loop.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Started
The Agent execution started.
TurnStarted
A model turn started.
Model
One provider-neutral model streaming event.
Fields
event: ModelStreamEventCanonical event accepted by the model stream accumulator.
ContextRetrieved
One dynamic context source completed retrieval.
Fields
CallableStarted
A Tool or child Agent call started.
Fields
kind: CallableKindCallable boundary.
CallableCompleted
A Tool or child Agent call reached a recoverable terminal result.
Fields
kind: CallableKindCallable boundary.
UsageUpdated
Shared run-tree resource usage changed.
Completed
The Agent reached a terminal model response.
Fields
outcome: AgentOutcomeComplete canonical outcome.
ConversationSummaryStarted
A checkpointed summary batch is about to run or resume.
Fields
checkpoint_id: CheckpointIdStable summary Agent checkpoint identity.
through_sequence: ConversationSequenceLast transcript entry included in this batch.
ConversationSummaryCommitted
A summary batch and its session progress have been persisted.
Fields
through_sequence: ConversationSequenceLast transcript entry covered by the committed summary.
ConversationCommitted
The terminal checkpoint and conversation transcript committed atomically.
Fields
outcome: AgentOutcomeComplete canonical outcome.
conversation_version: ConversationVersionCommitted transcript version.
TerminalRepairScheduled
An invalid terminal candidate scheduled a bounded repair turn.
Fields
failure: TerminalRequirementFailureSafe reason the candidate was rejected.
TurnReviewStarted
Internal review started before a model response can affect execution.
TurnReviewCompleted
Internal review returned a validated verdict.
Fields
verdict: TerminalReviewVerdictKindStable semantic verdict category.
TurnReviewRepairScheduled
An internal review verdict scheduled a replacement model turn.
Fields
TerminalReviewStarted
Semantic review of a locally valid terminal candidate started.
TerminalReviewCompleted
Semantic review returned a validated verdict.
Fields
verdict: TerminalReviewVerdictKindStable semantic verdict category.
TerminalReviewRepairScheduled
A semantic review verdict scheduled a bounded regeneration turn.
Trait Implementations§
Source§impl Clone for AgentStreamEvent
impl Clone for AgentStreamEvent
Source§fn clone(&self) -> AgentStreamEvent
fn clone(&self) -> AgentStreamEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more