pub struct StepState {
pub status: StepStatus,
pub attempt: u32,
pub started: Option<u64>,
pub finished: Option<u64>,
pub output: Option<Value>,
pub error: Option<String>,
pub wait: Option<Value>,
pub cache_key: Option<String>,
pub worker: Option<String>,
pub forced: bool,
}Expand description
One step’s durable state.
Fields§
§status: StepStatus§attempt: u32§started: Option<u64>§finished: Option<u64>§output: Option<Value>§error: Option<String>§wait: Option<Value>The suspension detail ({kind, timer?, deadline_ms?, …}).
cache_key: Option<String>The memoization key for this attempt, held from dispatch (where the
cache {key, ttl} miss is detected) until the terminal outcome (where
the output is stored under it). It needs its own slot rather than
riding wait: a step that suspends — agent, human, subagent,
foreach, wait — overwrites wait with its suspension detail, so a
key parked there would survive only for the kinds cheap enough not to
need caching. Durable, because the suspension it spans can outlive the
process.
worker: Option<String>The turn worker / child handle executing this step (not durable).
forced: boolScheduled explicitly (an on_error: goto target / a switch case):
runs even if its dependencies are not terminal.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StepState
impl<'de> Deserialize<'de> for StepState
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 StructuralPartialEq for StepState
Auto Trait Implementations§
impl Freeze for StepState
impl RefUnwindSafe for StepState
impl Send for StepState
impl Sync for StepState
impl Unpin for StepState
impl UnsafeUnpin for StepState
impl UnwindSafe for StepState
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