pub enum Event {
RunStarted {
feature: String,
tasks: Vec<PlannedTask>,
},
TaskStarted {
feature: String,
task: String,
title: String,
},
Stage {
task: String,
stage: Stage,
state: StageState,
detail: Option<String>,
elapsed_ms: Option<u64>,
tail: Vec<String>,
},
Resumed {
task: String,
stage: Option<Stage>,
last_call: Option<String>,
},
ApprovalRequested {
task: String,
call: String,
tool: String,
what: String,
class: String,
},
ApprovalDecided {
task: String,
call: String,
decision: String,
scope: Option<String>,
by: String,
how: String,
},
ToolCall {
task: String,
turn: u32,
tool: String,
target: String,
decision: String,
ok: Option<bool>,
tail: Vec<String>,
},
Usage {
task: String,
input_tokens: u64,
output_tokens: u64,
cache_read_tokens: u64,
cache_write_tokens: u64,
usd: Option<f64>,
},
TaskFinished {
task: String,
outcome: String,
message: String,
run: Option<String>,
input_tokens: u64,
output_tokens: u64,
cache_read_tokens: u64,
cache_write_tokens: u64,
usd: Option<f64>,
},
Said {
task: String,
turn: u32,
text: String,
},
Notice {
text: String,
},
}Expand description
Something a run did.
Variants§
RunStarted
A feature run begins: its tasks, as the graph has them (editors show them as a plan).
Fields
§
tasks: Vec<PlannedTask>Every task, in document order.
TaskStarted
A task attempt run begins.
Stage
A stage of the task’s pipeline began, ended or does not apply.
Fields
§
state: StageStateWhere it is.
Resumed
A run picks up an attempt a killed process left behind.
Fields
ApprovalRequested
A call waits for a person: notify them.
Fields
ApprovalDecided
A person decided a call inline.
Fields
ToolCall
A tool call the model asked for, with the policy’s decision.
Fields
Usage
Tokens so far in the current attempt.
Fields
TaskFinished
The task run ended.
Fields
Said
What the model said in a turn, beside its tool calls: its account of what it is doing — a claim, never evidence. Control characters escaped; at most 2000 characters.
Fields
Notice
Anything else worth a line (convergence rounds, notices).
Trait Implementations§
impl StructuralPartialEq for Event
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