Skip to main content

RunStatus

Enum RunStatus 

Source
pub enum RunStatus {
    NotStarted,
    Running,
    AwaitingModel,
    AwaitingTool,
    Suspended {
        reason: String,
        input_schema: Value,
    },
    BudgetExceeded {
        budget: Budget,
        observed: f64,
    },
    NeedsReconciliation,
    Completed {
        output: Value,
    },
    Failed {
        error: String,
    },
    Abandoned {
        reason: Option<String>,
        unresolved_write: Option<UnresolvedWrite>,
    },
}
Expand description

Where a run stands, as derived from its log alone.

Variants§

§

NotStarted

The log is empty: nothing has been recorded yet.

§

Running

The run is between recorded steps and can continue.

§

AwaitingModel

A model call intent is recorded with no completion. The call can be re-issued.

§

AwaitingTool

A read or idempotent tool intent is recorded with no completion. The call can be re-executed (reads freely, idempotent calls under their recorded key).

§

Suspended

The run parked awaiting input. Carries what a resume needs: why it parked and the schema the input must satisfy.

Fields

§reason: String

The recorded suspension reason.

§input_schema: Value

The JSON Schema the resume input is validated against.

§

BudgetExceeded

A declared budget was crossed and the run parked. A human can raise the limit and resume.

Fields

§budget: Budget

The budget that was crossed.

§observed: f64

The observed value, in the units of the budget’s kind.

§

NeedsReconciliation

A write intent is recorded with no completion. The write may or may not have happened; only a human may decide what happens next. Never derived as retryable, by design.

§

Completed

The run finished with this output.

Fields

§output: Value

The recorded final output.

§

Failed

The run failed with this error.

Fields

§error: String

The recorded failure description.

§

Abandoned

The run was abandoned by an operator: a terminal resting state in its own right, distinct from RunStatus::Failed. Abandonment is a deliberate retirement, not a failure, so it reads as its own muted terminal everywhere downstream rather than borrowing the failure ink.

Fields

§reason: Option<String>

The operator’s optional note for why the run was abandoned.

§unresolved_write: Option<UnresolvedWrite>

The write intent left unsettled when a needs-reconciliation run was abandoned, when there was one. Present only for a run abandoned from RunStatus::NeedsReconciliation; the abandonment records it so the terminal state never claims the write question was answered.

Trait Implementations§

Source§

impl Clone for RunStatus

Source§

fn clone(&self) -> RunStatus

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 RunStatus

Source§

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

Formats the value using the given formatter. Read more
Source§

impl PartialEq for RunStatus

Source§

fn eq(&self, other: &RunStatus) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for RunStatus

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, 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> 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.