pub enum EventMsg {
TurnStarted {
thread_id: ThreadId,
session_id: SessionId,
turn_id: String,
},
ResponseDelta {
thread_id: ThreadId,
session_id: SessionId,
delta: String,
channel: String,
},
ToolCallStarted {
thread_id: ThreadId,
session_id: SessionId,
tool_call_id: String,
tool_name: String,
input: Value,
},
ToolCallComplete {
thread_id: ThreadId,
session_id: SessionId,
tool_call_id: String,
tool_name: String,
result: Value,
},
TurnComplete {
thread_id: ThreadId,
session_id: SessionId,
turn_id: String,
status: String,
error: Option<String>,
},
TurnUsage {
thread_id: ThreadId,
session_id: SessionId,
input_tokens: u32,
output_tokens: u32,
},
CompactionStarted {
thread_id: ThreadId,
session_id: SessionId,
message: String,
},
CompactionCompleted {
thread_id: ThreadId,
session_id: SessionId,
message: String,
},
Error {
thread_id: ThreadId,
session_id: SessionId,
message: String,
},
}Expand description
One event emitted by the core engine to every consumer (TUI, CLI,
app-server, tests). This is the EventMsg-out half of the Op-in /
EventMsg-out contract. It is a straight projection of the existing
internal Event variants (streaming deltas, tool lifecycle, turn
lifecycle, approvals) plus the thread/session ids that ThreadId /
SessionId now make explicit.
Variants§
TurnStarted
ResponseDelta
ToolCallStarted
Fields
ToolCallComplete
Fields
TurnComplete
Fields
TurnUsage
CompactionStarted
CompactionCompleted
Error
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventMsg
impl<'de> Deserialize<'de> for EventMsg
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 EventMsg
impl RefUnwindSafe for EventMsg
impl Send for EventMsg
impl Sync for EventMsg
impl Unpin for EventMsg
impl UnsafeUnpin for EventMsg
impl UnwindSafe for EventMsg
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