pub enum RunEvent {
TextDelta(String),
ThinkingDelta(String),
ToolCall {
id: String,
name: String,
},
ToolDelta {
call_id: String,
name: String,
chunk: ToolChunk,
},
ToolSuspend {
call_id: String,
name: String,
suspension_id: String,
payload: Option<Value>,
},
ToolResult {
call_id: String,
content: String,
is_error: bool,
is_fatal: bool,
error_kind: Option<ToolErrorKind>,
},
ToolArgumentRepaired {
call_id: String,
name: String,
original_arguments: String,
repaired_arguments: String,
},
ToolDenied {
call_id: String,
tool_name: String,
reason: String,
},
PermissionRequest {
call_id: String,
tool_name: String,
arguments: String,
reason: String,
},
PermissionResolved {
call_id: String,
tool_name: String,
approved: bool,
responder: String,
reason: Option<String>,
},
Done {
iterations: u32,
total_tokens: u64,
status: String,
},
Error(String),
}Expand description
Streaming events from RuntimeRunner and ExecutionPlane.
Variants§
TextDelta(String)
ThinkingDelta(String)
ToolCall
ToolDelta
ToolSuspend
ToolResult
Fields
§
error_kind: Option<ToolErrorKind>ToolArgumentRepaired
ToolDenied
Governance pipeline denied a tool call before execution.
Emitted alongside ToolResult { is_error: true } so callers can
distinguish policy denials from tool-side errors and write the correct
SessionEvent::ToolDenied audit record.
PermissionRequest
Governance pipeline requires user approval (ask_user verdict).
Emitted before ToolResult { is_error: true } so runners can write
SessionEvent::PermissionRequested + SessionEvent::PermissionResolved.
PermissionResolved
Done
Error(String)
Trait Implementations§
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