pub enum RuntimeEvent {
TextDelta {
session_id: SessionId,
text: String,
agent_id: Option<String>,
trace_id: Option<String>,
},
ThoughtDelta {
session_id: SessionId,
text: String,
agent_id: Option<String>,
trace_id: Option<String>,
},
ToolCallStarted {
session_id: SessionId,
tool_name: String,
args_json: String,
agent_id: Option<String>,
trace_id: Option<String>,
},
ToolCallFinished {
session_id: SessionId,
tool_name: String,
summary: String,
agent_id: Option<String>,
trace_id: Option<String>,
},
AwaitingApproval {
session_id: SessionId,
request: ApprovalRequest,
agent_id: Option<String>,
trace_id: Option<String>,
},
Checkpoint {
session_id: SessionId,
checkpoint: CheckpointData,
agent_id: Option<String>,
trace_id: Option<String>,
},
RunFinished {
session_id: SessionId,
agent_id: Option<String>,
trace_id: Option<String>,
},
RunCancelled {
session_id: SessionId,
agent_id: Option<String>,
trace_id: Option<String>,
},
PlanUpdated {
session_id: SessionId,
objective: String,
explanation: Option<String>,
plan: Vec<PlanItem>,
agent_id: Option<String>,
trace_id: Option<String>,
},
UserEvent {
session_id: SessionId,
event: UserEvent,
agent_id: Option<String>,
trace_id: Option<String>,
},
}Expand description
Unified runtime event — the single event type for both internal and external consumers (frontends, CLIs, tests).
Variants§
TextDelta
Fields
ThoughtDelta
ToolCallStarted
Fields
ToolCallFinished
Fields
AwaitingApproval
Fields
§
request: ApprovalRequestCheckpoint
Fields
§
checkpoint: CheckpointDataRunFinished
RunCancelled
PlanUpdated
Fields
UserEvent
A user-space event produced by a tool.
Implementations§
Source§impl RuntimeEvent
impl RuntimeEvent
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
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