pub enum StatusUpdate {
Show 22 variants
ReplyText(String),
MessageTaken {
text: String,
origin: String,
},
Thinking(usize),
#[non_exhaustive] ToolStart {
name: String,
summary: String,
kind: ActivityKind,
input: String,
},
ToolProgress {
name: String,
chunk: String,
},
UserActionRequired {
message: String,
},
#[non_exhaustive] ToolComplete {
name: String,
summary: String,
output: String,
},
ToolCancellable {
name: String,
task_id: String,
},
ProgressSummary {
elapsed_mins: u64,
summary: String,
},
IterationWarning {
current: usize,
threshold: usize,
},
PlanCreated {
plan_id: String,
description: String,
total_steps: usize,
},
PlanStepStart {
plan_id: String,
step_index: usize,
total_steps: usize,
description: String,
},
PlanStepComplete {
plan_id: String,
step_index: usize,
total_steps: usize,
description: String,
summary: Option<String>,
},
PlanStepFailed {
plan_id: String,
step_index: usize,
description: String,
error: String,
},
PlanComplete {
plan_id: String,
description: String,
total_steps: usize,
duration_secs: u64,
},
PlanAbandoned {
plan_id: String,
description: String,
},
PlanRevised {
plan_id: String,
description: String,
reason: String,
new_total_steps: usize,
},
Checklist(PlanCard),
Helper(HelperView),
Finished {
by_me: Option<String>,
total: Option<String>,
},
#[non_exhaustive] StepHandedOff {
kind: ActivityKind,
name: String,
output: String,
},
CommandOutput {
name: String,
lines: u64,
tail: Option<String>,
},
}Expand description
Status updates emitted by tools and the agent loop for live feedback to the user.
Variants§
ReplyText(String)
A chunk of the reply as the model writes it, for app clients that stream it. Only a top-level turn sends it; the runner hands it to the turn observer and never to a chat surface, its live state or a parent’s card. The finished reply still arrives as the turn’s answer.
MessageTaken
A message the sender sent while the turn ran, taken into it: for app
clients, which show it in the conversation once the run reads it.
Like ReplyText, the runner hands it to the turn observer only (a
chat surface already shows what its sender typed). origin is the
platform it was sent from.
Thinking(usize)
Sent before each LLM call (skipped on iteration 0).
#[non_exhaustive]ToolStart
Sent before each tool execution. kind is what every card shows;
name and summary are the call’s own words for clients that list
calls. Built with StatusUpdate::tool_start: the variant is
non-exhaustive so a new field changes one constructor, not every
sender.
Fields
This variant is marked as non-exhaustive
kind: ActivityKindinput: StringThe call’s arguments as an app shows them
(crate::shown::call_input); empty when there are none to show.
ToolProgress
Streaming output chunk from a tool (e.g., CLI agent progress).
UserActionRequired
A tool is paused until the user completes an explicit action, such as authorizing an OAuth connection in their browser. Unlike ordinary tool progress, channels must deliver this immediately and without truncation.
#[non_exhaustive]ToolComplete
Tool execution completed with a brief summary. Built with
StatusUpdate::tool_complete.
Fields
This variant is marked as non-exhaustive
output: StringThe call’s result as an app shows it
(crate::shown::call_output); empty when there is none to show.
ToolCancellable
Tool can be cancelled with the given task_id.
ProgressSummary
Periodic summary for long-running tasks (emitted every 5 minutes).
IterationWarning
Warning that soft iteration limit is approaching.
PlanCreated
A new task plan was created.
PlanStepStart
A plan step has started executing.
PlanStepComplete
A plan step completed successfully.
Fields
PlanStepFailed
A plan step failed.
PlanComplete
The entire plan completed successfully.
PlanAbandoned
The plan was abandoned by user request.
PlanRevised
The plan was revised with new/updated steps.
Checklist(PlanCard)
The task plan as the single live card shows it: its rendering and its step count, which decides whether the card is kept.
Helper(HelperView)
A helper’s record changed: it started, took a step or ended. The view is the runtime’s record of it, so the live card and the card a turn leaves behind show the same thing.
Finished
The request finished in this turn, after helpers it waited on, as
the runtime measured it and already worded for the owner. by_me:
the turn finished work itself after a helper ended (“Finished by me
after the helper: Drupal install” and that work’s measured line);
total: the request’s whole time, from the owner’s message to the
answer (“Answer sent 10m 12s after your request (5:30:24 PM to
5:40:36 PM ET).”), when it adds to the helpers’ own times.
#[non_exhaustive]StepHandedOff
A step ended by handing its work to something that keeps running: a
helper (ActivityKind::Delegate) or a background job. The work has
not finished, so the step must never read as finished. Built with
StatusUpdate::step_handed_off.
Fields
This variant is marked as non-exhaustive
kind: ActivityKindname: StringThe call’s name as its Self::ToolStart gave it; empty when
there was no such update.
output: StringThe call’s own result (its launch line) as an app shows it
(Self::showing_result); empty when there is none to show.
CommandOutput
How many lines a long-running command has printed so far, sent at
most every few seconds while it runs. A helper’s card line shows the
count, so a long count or install visibly moves. Never the lines
themselves: a command’s output is its own data and can carry a
credential (see aidaemon_core::card::Step::Output).
Implementations§
Source§impl StatusUpdate
impl StatusUpdate
Sourcepub fn tool_start(
name: impl Into<String>,
summary: impl Into<String>,
kind: ActivityKind,
) -> Self
pub fn tool_start( name: impl Into<String>, summary: impl Into<String>, kind: ActivityKind, ) -> Self
A call starting, with nothing to show of its arguments yet
(Self::showing_arguments adds them).
Sourcepub fn tool_complete(
name: impl Into<String>,
summary: impl Into<String>,
) -> Self
pub fn tool_complete( name: impl Into<String>, summary: impl Into<String>, ) -> Self
A call finished, with nothing to show of its result yet
(Self::showing_result adds it).
Sourcepub fn step_handed_off(name: impl Into<String>, kind: ActivityKind) -> Self
pub fn step_handed_off(name: impl Into<String>, kind: ActivityKind) -> Self
A step that handed its work off (Self::StepHandedOff), named as
its call started; Self::showing_result adds its launch result.
Sourcepub fn showing_arguments(self, arguments: &str) -> Self
pub fn showing_arguments(self, arguments: &str) -> Self
A started call that shows its raw JSON arguments the way history
does (crate::shown::call_input). Other updates are unchanged.
Sourcepub fn showing_result(self, result: &str) -> Self
pub fn showing_result(self, result: &str) -> Self
A finished or handed-off call that shows its result the way history
does (crate::shown::call_output). Other updates are unchanged.
Sourcepub fn requires_immediate_delivery(&self) -> bool
pub fn requires_immediate_delivery(&self) -> bool
Whether a channel must deliver this update immediately instead of treating it as optional, rate-limited progress.