#[non_exhaustive]pub enum AgentLoopBlockedReason {
MaxModelTurnsReached {
max_model_turns: usize,
},
MultiplePendingToolCalls {
pending_count: usize,
},
StepCompletedWithPendingToolCall {
pending_count: usize,
},
StepEndedWithoutTerminalEvent,
FinalOutputToolNotCalled,
BridgeToolCallRequested {
call_id: ToolCallId,
tool_name: ToolName,
},
}Expand description
Reasons a loop can stop without final model completion.
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.
MaxModelTurnsReached
The configured model-turn budget has been reached.
MultiplePendingToolCalls
Legacy blocked status retained for compatibility with older loop results.
Current runtime-owned loops execute supported pending batches directly.
StepCompletedWithPendingToolCall
A step emitted both completion and pending tool-call state.
StepEndedWithoutTerminalEvent
A step stream ended without a completion, failure, cancellation, or pending tool-call event.
FinalOutputToolNotCalled
The loop required the final-output tool but the model completed with text.
BridgeToolCallRequested
A pending tool call must be executed by an external bridge runner.
Trait Implementations§
Source§impl Clone for AgentLoopBlockedReason
impl Clone for AgentLoopBlockedReason
Source§impl Debug for AgentLoopBlockedReason
impl Debug for AgentLoopBlockedReason
impl Eq for AgentLoopBlockedReason
Source§impl PartialEq for AgentLoopBlockedReason
impl PartialEq for AgentLoopBlockedReason
impl StructuralPartialEq for AgentLoopBlockedReason
Auto Trait Implementations§
impl Forget for AgentLoopBlockedReason
impl Freeze for AgentLoopBlockedReason
impl Move for AgentLoopBlockedReason
impl RefUnwindSafe for AgentLoopBlockedReason
impl Send for AgentLoopBlockedReason
impl Sync for AgentLoopBlockedReason
impl Unpin for AgentLoopBlockedReason
impl UnsafeUnpin for AgentLoopBlockedReason
impl UnwindSafe for AgentLoopBlockedReason
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.