pub enum EngineEvent {
TextDelta(String),
ThinkingDelta(String),
ToolStart {
name: String,
summary: String,
},
ToolDone {
name: String,
ok: bool,
},
ToolDenied {
name: String,
},
ToolAutoAllowed {
name: String,
rule: String,
},
Retrying {
attempt: u32,
reason: String,
},
FallbackModel {
model: String,
},
PromptQueued,
Compacted {
degraded: bool,
},
Ask {
summary: String,
protected_why: Option<String>,
reply: Sender<AskReply>,
},
TurnDone {
outcome: Outcome,
usage: TokenUsage,
},
}Expand description
Everything the surface renders. Ask carries the reply channel — the
surface (or an allow-rule upstream) is the human on the loop.
Variants§
TextDelta(String)
ThinkingDelta(String)
ToolStart
ToolDone
ToolDenied
ToolAutoAllowed
Retrying
FallbackModel
PromptQueued
Compacted
Context was compacted (digest + verbatim tail); degraded means the
summarize call failed and the floor placeholder was used.
Ask
TurnDone
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for EngineEvent
impl !UnwindSafe for EngineEvent
impl Freeze for EngineEvent
impl Send for EngineEvent
impl Sync for EngineEvent
impl Unpin for EngineEvent
impl UnsafeUnpin for EngineEvent
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