Skip to main content

StatusUpdate

Enum StatusUpdate 

Source
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.

Fields

§text: String
§origin: String
§

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
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§name: String
§summary: String
§input: String

The 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).

Fields

§name: String
§chunk: String
§

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.

Fields

§message: String
§

#[non_exhaustive]
ToolComplete

Tool execution completed with a brief summary. Built with StatusUpdate::tool_complete.

Fields

This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§name: String
§summary: String
§output: String

The 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.

Fields

§name: String
§task_id: String
§

ProgressSummary

Periodic summary for long-running tasks (emitted every 5 minutes).

Fields

§elapsed_mins: u64
§summary: String
§

IterationWarning

Warning that soft iteration limit is approaching.

Fields

§current: usize
§threshold: usize
§

PlanCreated

A new task plan was created.

Fields

§plan_id: String
§description: String
§total_steps: usize
§

PlanStepStart

A plan step has started executing.

Fields

§plan_id: String
§step_index: usize
§total_steps: usize
§description: String
§

PlanStepComplete

A plan step completed successfully.

Fields

§plan_id: String
§step_index: usize
§total_steps: usize
§description: String
§summary: Option<String>
§

PlanStepFailed

A plan step failed.

Fields

§plan_id: String
§step_index: usize
§description: String
§error: String
§

PlanComplete

The entire plan completed successfully.

Fields

§plan_id: String
§description: String
§total_steps: usize
§duration_secs: u64
§

PlanAbandoned

The plan was abandoned by user request.

Fields

§plan_id: String
§description: String
§

PlanRevised

The plan was revised with new/updated steps.

Fields

§plan_id: String
§description: String
§reason: String
§new_total_steps: usize
§

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.

Fields

§

#[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
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§name: String

The call’s name as its Self::ToolStart gave it; empty when there was no such update.

§output: String

The 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).

Fields

§name: String
§lines: u64
§tail: Option<String>

Its latest lines, secrets redacted, for the owner’s own app only (command_output_tail); a chat’s card reads lines and never this. None where the owner’s app is not the reader.

Implementations§

Source§

impl StatusUpdate

Source

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).

Source

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).

Source

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.

Source

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.

Source

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.

Source

pub fn requires_immediate_delivery(&self) -> bool

Whether a channel must deliver this update immediately instead of treating it as optional, rate-limited progress.

Trait Implementations§

Source§

impl Clone for StatusUpdate

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StatusUpdate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more