#[non_exhaustive]pub enum RunOutcome {
Completed {
final_text: String,
},
Paused {
pause: RunPause,
},
Cancelled,
Failed {
error: AgentError,
},
IterationLimit,
}Expand description
How a run ended.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Completed
The model answered and nothing held the run.
Paused
The run stopped for a reason that needs the embedder.
Cancelled
Run::cancel was called, or the run was dropped.
Failed
The run failed; Run::drive returns the error.
Fields
§
error: AgentErrorWhat went wrong.
IterationLimit
The model kept calling tools past
max_iterations.
Trait Implementations§
Source§impl Clone for RunOutcome
impl Clone for RunOutcome
Auto Trait Implementations§
impl !RefUnwindSafe for RunOutcome
impl !UnwindSafe for RunOutcome
impl Forget for RunOutcome
impl Freeze for RunOutcome
impl Move for RunOutcome
impl Send for RunOutcome
impl Sync for RunOutcome
impl Unpin for RunOutcome
impl UnsafeUnpin for RunOutcome
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