pub enum StepResult {
Ok {
data: Value,
discovered_sub_goal: Option<Value>,
},
Err {
message: String,
recoverable: bool,
},
}Expand description
Outcome of a single step attempt.
On failure, the agent loop will retry up to 3 times per step before
producing a FailureReport.
Variants§
Ok
The step completed. data is a free-form JSON blob that the
agent writes into the plan’s shared_memory. discovered_sub_goal
is how mid-execution surprises (consent walls, auth prompts) get
injected into the current sub-goal’s remaining steps.
Fields
Err
The step failed. recoverable=true means the agent may retry;
recoverable=false means retry would be pointless (e.g. the
LLM refused, or an invariant was violated) and the 3-strike
budget should skip straight to the failure report.
Trait Implementations§
Source§impl Clone for StepResult
impl Clone for StepResult
Source§fn clone(&self) -> StepResult
fn clone(&self) -> StepResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StepResult
impl Debug for StepResult
Source§impl<'de> Deserialize<'de> for StepResult
impl<'de> Deserialize<'de> for StepResult
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
Auto Trait Implementations§
impl Freeze for StepResult
impl RefUnwindSafe for StepResult
impl Send for StepResult
impl Sync for StepResult
impl Unpin for StepResult
impl UnsafeUnpin for StepResult
impl UnwindSafe for StepResult
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