Enum TurnStopCode
pub enum TurnStopCode {
LoopDetector,
IdenticalOutput,
MaxIterations,
BudgetExhausted,
ContextOverflow,
ProviderAuth,
ProviderUnavailable,
StepTimeout,
TurnTimeout,
Cancelled,
Panicked,
PromptRequiredRepeat,
}Expand description
What stopped the turn.
Variants§
LoopDetector
The pattern-based loop detector tripped its circuit breaker.
IdenticalOutput
Consecutive rounds produced byte-identical tool output.
MaxIterations
The tool loop exhausted an iteration cap: max_tool_iterations or the
execution-tree iteration budget.
BudgetExhausted
The turn’s cost budget is spent.
ContextOverflow
The request does not fit the model’s context window and history cannot be trimmed further.
ProviderAuth
The provider rejected the credentials.
No provider/model in the chain could serve the request.
StepTimeout
A single inference step exceeded pacing.step_timeout_secs.
TurnTimeout
The whole turn exceeded its time budget.
Cancelled
The caller cancelled the turn.
Panicked
A task driving the turn panicked.
PromptRequiredRepeat
A prompt-required tool was called again with identical arguments before the pending approval resolved.
Trait Implementations§
Source§impl Clone for TurnStopCode
impl Clone for TurnStopCode
Source§fn clone(&self) -> TurnStopCode
fn clone(&self) -> TurnStopCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TurnStopCode
Source§impl Debug for TurnStopCode
impl Debug for TurnStopCode
impl Eq for TurnStopCode
Source§impl PartialEq for TurnStopCode
impl PartialEq for TurnStopCode
impl StructuralPartialEq for TurnStopCode
Auto Trait Implementations§
impl Freeze for TurnStopCode
impl RefUnwindSafe for TurnStopCode
impl Send for TurnStopCode
impl Sync for TurnStopCode
impl Unpin for TurnStopCode
impl UnsafeUnpin for TurnStopCode
impl UnwindSafe for TurnStopCode
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