pub enum WatchEvent {
Show 26 variants
RunStart {
run_id: String,
started_at: i64,
lane: String,
},
RunEnd {
lane: String,
run_id: String,
status: Ended,
error: Option<Failure>,
from_tip_id: Option<String>,
tip_id: Option<String>,
ended_at: i64,
},
MessageStart {
run_id: Option<String>,
lane: String,
message: Value,
},
MessageUpdate {
run_id: Option<String>,
lane: String,
frame: Value,
usage: Value,
message: Option<Value>,
},
MessageEnd {
run_id: Option<String>,
lane: String,
message: Value,
},
ToolStart {
run_id: Option<String>,
lane: String,
tool_call_id: String,
tool_name: String,
args: Value,
},
ToolUpdate {
run_id: Option<String>,
lane: String,
tool_call_id: String,
tool_name: String,
args: Value,
partial_result: Value,
},
ToolEnd {
run_id: Option<String>,
lane: String,
tool_call_id: String,
tool_name: String,
result: Value,
is_error: bool,
},
QueueUpdate {
lane: String,
queues: Vec<QueueItem>,
},
SessionName {
lane: String,
name: Option<String>,
},
SessionInfoChanged {
lane: String,
name: Option<String>,
},
EntryAdded {
lane: String,
entry: Value,
},
Usage {
lane: String,
row: Value,
totals: Value,
},
RetryScheduled {
lane: String,
run_id: Option<String>,
step: String,
attempt: u64,
max_attempts: u64,
delay_ms: u64,
not_before: i64,
error_message: String,
},
RetryStart {
lane: String,
run_id: Option<String>,
step: String,
attempt: u64,
},
RetryEnd {
lane: String,
run_id: Option<String>,
step: String,
attempt: u64,
success: bool,
final_error: Option<String>,
},
BashExecutionUpdate {
lane: String,
id: Option<String>,
delta: String,
},
ConfigUpdate {
lane: String,
property: String,
value: Value,
},
SummarizationRetryScheduled {
lane: String,
attempt: u64,
max_attempts: u64,
delay_ms: u64,
error_message: String,
},
SummarizationRetryAttemptStart {
lane: String,
source: String,
reason: Option<String>,
},
SummarizationRetryFinished {
lane: String,
},
CompactionStart {
lane: String,
run_id: Option<String>,
reason: String,
},
CompactionEnd {
lane: String,
run_id: Option<String>,
reason: String,
status: Ended,
error: Option<Failure>,
},
NavigationStart {
lane: String,
run_id: String,
target_id: Option<String>,
started_at: i64,
},
NavigationEnd {
lane: String,
run_id: String,
status: Ended,
error: Option<Failure>,
from_tip_id: Option<String>,
tip_id: Option<String>,
ended_at: i64,
},
Activity {
lane: String,
active: bool,
},
}Expand description
One lane-watch event.
Variants§
RunStart
RunEnd
Fields
MessageStart
A message started: the run’s assistant answer or tool result, or a message outside a run (no runId).
MessageUpdate
The streaming assistant message changed: the provider frame and the usage so far, not the message (a watcher
folds the frame into the started message). An older worker’s update carries the whole message instead.
MessageEnd
ToolStart
ToolUpdate
Fields
ToolEnd
Fields
QueueUpdate
The queued items now.
SessionName
The session’s name now (None: cleared); Rust-only, served as ultron.session-ops state.
SessionInfoChanged
AgentSession setSessionName (Pi’s RPC event).
EntryAdded
A journal entry joined the session (a message, a compaction, a branch summary, …).
Usage
A usage row, with the lane’s totals after it.
RetryScheduled
A generation’s request failed and is retried after delay_ms.
Fields
RetryStart
The retry wait ended: the step’s next attempt starts.
RetryEnd
A retried request’s retries ended; final_error when the last attempt failed too.
Fields
BashExecutionUpdate
A chunk of a user ! command’s output (AgentSession bash_execution_update), under the command’s id.
ConfigUpdate
A lane setting changed (thinkingLevel).
SummarizationRetryScheduled
A compaction’s or branch summary’s request failed and is retried (AgentSession onRetryScheduled): the
retry’s number, the retries allowed, the delay and the provider’s error.
SummarizationRetryAttemptStart
The summary’s retry starts (onRetryAttemptStart): of a branch summary (source: branchSummary), or of a
compaction (source: compaction) for reason.
SummarizationRetryFinished
The summary’s retries ended, however they did (onRetryFinished).
CompactionStart
A compaction started: manual, or threshold / overflow for one the session runs on its own in a run.
CompactionEnd
A tree navigation started (target_id: the entry, None: the root).
Activity
Whether detached work of the session is active (the worker does not retire while it is).