pub enum RuntimeEvent {
Show 16 variants
Iteration {
iteration: usize,
},
ToolStart {
call_id: String,
name: String,
input: Value,
},
ToolResult {
call_id: String,
name: String,
is_error: bool,
preview: String,
duration_ms: u64,
status_code: Option<i32>,
bytes: usize,
error_type: Option<String>,
},
TextDelta {
delta: String,
},
ToolWaveStart {
wave: usize,
tool_count: usize,
},
ToolWaveComplete {
wave: usize,
},
Cancelled {
final_text: String,
},
FinalResponse {
text: String,
},
MidTurnInjection {
count: usize,
},
FileDiff {
path: String,
diff: String,
added: usize,
removed: usize,
truncated: bool,
},
SubagentStarted {
run_id: String,
label: String,
},
SubagentFinished {
run_id: String,
status: String,
},
ApprovalRequired {
approval_id: String,
tool: String,
preview: Option<String>,
options: Vec<RuntimeApprovalOption>,
advisory: Option<String>,
},
CheckpointCreated {
commit: String,
label: String,
},
PlanUpdated {
steps: Vec<RuntimePlanStep>,
},
ProcessOutput {
call_id: String,
command: String,
output: String,
exit_code: Option<i32>,
duration_ms: u64,
truncated: bool,
kind: RuntimeProcessKind,
},
}Expand description
An observable event emitted by the shared agent runtime.
Keep provider-specific payloads behind the runtime boundary. Consumers should be able to project this stream without knowing which LLM produced it.
Variants§
Iteration
ToolStart
ToolResult
Fields
TextDelta
ToolWaveStart
ToolWaveComplete
Cancelled
FinalResponse
MidTurnInjection
FileDiff
SubagentStarted
SubagentFinished
ApprovalRequired
Fields
§
options: Vec<RuntimeApprovalOption>CheckpointCreated
PlanUpdated
Fields
§
steps: Vec<RuntimePlanStep>ProcessOutput
Trait Implementations§
Source§impl Clone for RuntimeEvent
impl Clone for RuntimeEvent
Source§fn clone(&self) -> RuntimeEvent
fn clone(&self) -> RuntimeEvent
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 RuntimeEvent
impl Debug for RuntimeEvent
Source§impl<'de> Deserialize<'de> for RuntimeEvent
impl<'de> Deserialize<'de> for RuntimeEvent
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
Source§impl PartialEq for RuntimeEvent
impl PartialEq for RuntimeEvent
Source§impl Serialize for RuntimeEvent
impl Serialize for RuntimeEvent
impl StructuralPartialEq for RuntimeEvent
Auto Trait Implementations§
impl Freeze for RuntimeEvent
impl RefUnwindSafe for RuntimeEvent
impl Send for RuntimeEvent
impl Sync for RuntimeEvent
impl Unpin for RuntimeEvent
impl UnsafeUnpin for RuntimeEvent
impl UnwindSafe for RuntimeEvent
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