pub enum Outcome {
Continue,
Done,
Next(&'static str),
Retry(RetryHint),
Wait(Duration),
Fail(String),
}Expand description
Control flow for the runner.
Variants§
Continue
Follow the workflow’s default next step (set via .then()).
Done
Workflow complete, return the final state.
Next(&'static str)
Jump to a specific agent by name.
Retry(RetryHint)
Re-run the current agent (counted against max_retries).
Wait(Duration)
Sleep for the given duration, then re-run (counted against max_retries).
Fail(String)
Stop the workflow with an error.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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