pub enum TerminalStatus {
Completed,
Refused,
ExhaustedSteps,
ExhaustedTokens,
Deadline,
Stalled,
LoopDetected,
Cancelled,
Crashed,
}Variants§
Completed
The model emitted a final answer. Success is judged against the tool results the run actually produced, never against the model’s own claim that it succeeded.
Refused
The agent concluded the task cannot/should not be done (semantic).
ExhaustedSteps
Hit the per-run step cap.
ExhaustedTokens
Hit the token budget (per-node or tree ceiling).
Deadline
Hit the loop’s own wall-clock deadline.
Stalled
Output content-hash unchanged for N turns (default 3) — spinning.
LoopDetected
A single tool repeated past the per-tool cap K (default 3).
Cancelled
Cancelled by the supervisor (drain, parent cancel, route teardown).
Crashed
The subagent process crashed / was killed before a final.
Implementations§
Trait Implementations§
Source§impl Clone for TerminalStatus
impl Clone for TerminalStatus
Source§fn clone(&self) -> TerminalStatus
fn clone(&self) -> TerminalStatus
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 TerminalStatus
Source§impl Debug for TerminalStatus
impl Debug for TerminalStatus
Source§impl<'de> Deserialize<'de> for TerminalStatus
impl<'de> Deserialize<'de> for TerminalStatus
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 TerminalStatus
Source§impl PartialEq for TerminalStatus
impl PartialEq for TerminalStatus
Source§impl Serialize for TerminalStatus
impl Serialize for TerminalStatus
impl StructuralPartialEq for TerminalStatus
Auto Trait Implementations§
impl Freeze for TerminalStatus
impl RefUnwindSafe for TerminalStatus
impl Send for TerminalStatus
impl Sync for TerminalStatus
impl Unpin for TerminalStatus
impl UnsafeUnpin for TerminalStatus
impl UnwindSafe for TerminalStatus
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