pub enum Event {
Show 35 variants
MessageStarted {
index: usize,
},
MessageDelta {
index: usize,
content: String,
},
MessageComplete {
index: usize,
},
ThinkingStarted {
index: usize,
},
ThinkingDelta {
index: usize,
content: String,
},
ThinkingComplete {
index: usize,
},
ToolCallStarted {
id: String,
name: String,
input: Value,
},
ToolCallProgress {
id: String,
output: String,
},
ToolCallComplete {
id: String,
name: String,
result: Result<ToolResult, ToolError>,
},
TurnStarted {
turn_id: String,
},
ModelRequestPrepared {
static_prefix_sha256: String,
full_prefix_sha256: String,
},
TurnComplete {
usage: Usage,
last_request_input_tokens: Option<u32>,
status: TurnOutcomeStatus,
error: Option<String>,
step_count: u32,
tool_names: Vec<String>,
end_reason: Option<String>,
},
CompactionStarted {
id: String,
auto: bool,
message: String,
},
CompactionCompleted {
id: String,
auto: bool,
message: String,
messages_before: Option<usize>,
messages_after: Option<usize>,
},
CompactionFailed {
id: String,
auto: bool,
message: String,
},
CycleAdvanced {
from: u32,
to: u32,
briefing: CycleBriefing,
},
CapacityDecision {
session_id: String,
turn_id: String,
h_hat: f64,
c_hat: f64,
slack: f64,
min_slack: f64,
violation_ratio: f64,
p_fail: f64,
risk_band: String,
action: String,
cooldown_blocked: bool,
reason: String,
},
CapacityIntervention {
session_id: String,
turn_id: String,
action: String,
before_prompt_tokens: usize,
after_prompt_tokens: usize,
compaction_size_reduction: usize,
replay_outcome: Option<String>,
replan_performed: bool,
},
CapacityMemoryPersistFailed {
session_id: String,
turn_id: String,
action: String,
error: String,
},
CoherenceState {
state: CoherenceState,
label: String,
description: String,
reason: String,
},
AgentSpawned {
id: String,
prompt: String,
},
AgentProgress {
id: String,
status: String,
},
AgentComplete {
id: String,
result: String,
},
AgentList {
agents: Vec<SubAgentResult>,
},
SubAgentMailbox {
seq: u64,
message: MailboxMessage,
},
Error {
envelope: ErrorEnvelope,
recoverable: bool,
},
Status {
message: String,
},
PauseEvents,
ResumeEvents,
ApprovalRequired {
id: String,
tool_name: String,
description: String,
approval_key: String,
},
UserInputRequired {
id: String,
request: UserInputRequest,
},
SessionUpdated {
messages: Vec<Message>,
system_prompt: Option<SystemPrompt>,
model: String,
workspace: PathBuf,
},
CraftVerdict {
agent_id: String,
agent_type: String,
task_id: Option<String>,
verdict: String,
summary: Option<String>,
items: Value,
},
CraftBoardUpdated {
task_id: String,
partition: String,
agent_id: String,
},
ElevationRequired {
tool_id: String,
tool_name: String,
command: Option<String>,
denial_reason: String,
blocked_network: bool,
blocked_write: bool,
},
}Expand description
Events emitted by the engine to update the UI.
Variants§
MessageStarted
MessageDelta
MessageComplete
ThinkingStarted
ThinkingDelta
ThinkingComplete
ToolCallStarted
ToolCallProgress
ToolCallComplete
TurnStarted
ModelRequestPrepared
Prefix-cache fingerprint for one model API request (kernel-v2 M5).
TurnComplete
Fields
§
status: TurnOutcomeStatusCompactionStarted
CompactionCompleted
Fields
CompactionFailed
CycleAdvanced
CapacityDecision
Fields
CapacityIntervention
Fields
CapacityMemoryPersistFailed
CoherenceState
AgentSpawned
AgentProgress
AgentComplete
AgentList
Fields
§
agents: Vec<SubAgentResult>SubAgentMailbox
Error
Status
PauseEvents
ResumeEvents
ApprovalRequired
UserInputRequired
SessionUpdated
CraftVerdict
CRAFT: structured verdict from a completing sub-agent (B-L1).
Fields
CraftBoardUpdated
CRAFT: blackboard partition updated under .deepseek/blackboards/ (B-L1).
ElevationRequired
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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