pub enum RunState {
Queued,
Initializing,
Running,
WaitingModel,
WaitingTool,
WaitingInput,
Paused,
Stopping,
Terminal,
}Expand description
Neutral lifecycle state of a run.
The two wait variants beyond model/tool waits exist because real owner
state machines report them: workers can wait on user input, and jobs and
fleet runs can be explicitly paused. Collapsing those into Running or
Queued would misreport liveness, so the read model keeps them distinct.
Variants§
Queued
Accepted but not started.
Initializing
Spawn intent recorded; startup in progress.
Running
Actively executing.
WaitingModel
Blocked on a model response.
WaitingTool
Blocked on a tool execution.
WaitingInput
Blocked on user input.
Paused
Explicitly paused by the user or system.
Stopping
Cancellation or shutdown requested, not yet terminal.
Terminal
Finished; see AgentRunSnapshot::terminal for the outcome.
Trait Implementations§
impl Copy for RunState
Source§impl<'de> Deserialize<'de> for RunState
impl<'de> Deserialize<'de> for RunState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RunState
Source§impl Status for RunState
impl Status for RunState
impl StructuralPartialEq for RunState
Auto Trait Implementations§
impl Freeze for RunState
impl RefUnwindSafe for RunState
impl Send for RunState
impl Sync for RunState
impl Unpin for RunState
impl UnsafeUnpin for RunState
impl UnwindSafe for RunState
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