pub enum RunStatus {
Starting,
Running,
WaitingInput,
Complete,
CompleteInteractive,
Paused,
Error,
Cancelled,
}Expand description
Current status of a background run.
Variants§
Starting
Accepted and being set up; no inference has been issued yet.
Running
Working: inferring, calling tools, or moving between stages.
WaitingInput
Blocked on a person. A human-in-the-loop tool or an interaction point is waiting for an answer, and the run holds its concurrency slot until it gets one.
Complete
Finished, with nothing further to accept.
CompleteInteractive
All required stages done; agent still accepts optional follow-up input. Shown as “Complete” in the dashboard - no kill option, input still enabled.
Paused
Paused by the user; resumes on request and is restored paused after a daemon restart.
Error
Stopped by a failure. RunMeta::error carries what went wrong.
Cancelled
Stopped from outside, by lev kill or a shutting-down daemon. Distinct
from Error: nothing went wrong, someone decided.
Implementations§
Source§impl RunStatus
impl RunStatus
Sourcepub fn wire(&self) -> &'static str
pub fn wire(&self) -> &'static str
The word this status goes on the wire as: snake_case, the same
spelling serde writes into meta.json and into every JSON body that
carries a whole run.
Here rather than left to each caller because a status reaches a client
three ways - serialized inside a run, rendered into a status string by
a route that builds its own response shape, and forwarded off the
engine’s event stream - and all three have to spell one state one way.
Display is PascalCase and is
for a person reading a terminal; this is for a client matching on it.