pub enum TerminationReason {
Completed,
MaxTurns,
TokenBudget,
Deadline,
ContextOverflow,
NoProgress,
MilestoneExceeded,
}Expand description
Why the loop stopped.
user_abort and a generic error are deliberately absent: a cancellation is a
KernelTerminal::Cancelled and a kernel failure is a KernelTerminal::Failed. Folding
them back in here would give the same event two representations.
Variants§
Completed
MaxTurns
TokenBudget
Deadline
ContextOverflow
The reactive recovery ladder for a provider context overflow ran out.
NoProgress
Repeat fuse escalation — the agent kept re-issuing the same call. Distinct from MaxTurns,
which a productive run can also reach.
MilestoneExceeded
Trait Implementations§
Source§impl Clone for TerminationReason
impl Clone for TerminationReason
Source§fn clone(&self) -> TerminationReason
fn clone(&self) -> TerminationReason
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 moreimpl Copy for TerminationReason
Source§impl Debug for TerminationReason
impl Debug for TerminationReason
Source§impl<'de> Deserialize<'de> for TerminationReason
impl<'de> Deserialize<'de> for TerminationReason
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 Eq for TerminationReason
Source§impl PartialEq for TerminationReason
impl PartialEq for TerminationReason
Source§impl Serialize for TerminationReason
impl Serialize for TerminationReason
impl StructuralPartialEq for TerminationReason
Auto Trait Implementations§
impl Freeze for TerminationReason
impl RefUnwindSafe for TerminationReason
impl Send for TerminationReason
impl Sync for TerminationReason
impl Unpin for TerminationReason
impl UnsafeUnpin for TerminationReason
impl UnwindSafe for TerminationReason
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