pub enum TurnEvent {
IterationStart(usize),
AssistantDelta(String),
AssistantMessageEnd,
ToolStart {
name: String,
args: Value,
class: SafetyClass,
},
ToolEnd {
name: String,
ok: bool,
summary: String,
},
ToolRejected {
name: String,
class: SafetyClass,
},
Done {
iterations: usize,
max_iterations_hit: bool,
},
}Expand description
Streamed observation of what the runner is doing right now.
Variants§
IterationStart(usize)
Iteration index (1-based) about to start.
AssistantDelta(String)
Incremental assistant text — render as soon as it arrives.
AssistantMessageEnd
The assistant emitted its final text for this iteration (no further streaming until the next iteration or tool call).
ToolStart
The model requested a tool. The approval gate has not run yet.
Fields
§
class: SafetyClassSafety class of the tool.
ToolEnd
A tool finished executing.
Fields
ToolRejected
A tool call was rejected by the approval policy and never executed.
Done
The loop finished — model emitted no tool call, or the iteration cap was hit.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TurnEvent
impl RefUnwindSafe for TurnEvent
impl Send for TurnEvent
impl Sync for TurnEvent
impl Unpin for TurnEvent
impl UnsafeUnpin for TurnEvent
impl UnwindSafe for TurnEvent
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