#[non_exhaustive]pub enum AgentLoopStatus {
Completed,
Failed {
diagnostic: ErrorInfo,
},
Cancelled {
diagnostic: ErrorInfo,
},
Blocked {
reason: AgentLoopBlockedReason,
},
StoppedByHook {
hook_point: HookPoint,
reason: String,
},
}Expand description
Terminal or blocked status for an agent loop run.
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 provider returned a final completed step.
Failed
The runtime emitted a failed event. This is distinct from a method error
returned by crate::Runtime::step or crate::Runtime::execute_tool_call.
Cancelled
The runtime emitted a cancelled event, or loop-owned tool execution was cancelled before producing a durable result.
Blocked
The loop stopped because MVP loop policy cannot safely continue.
Fields
§
reason: AgentLoopBlockedReasonStoppedByHook
A lifecycle hook intentionally stopped the turn cleanly.
Trait Implementations§
Source§impl Clone for AgentLoopStatus
impl Clone for AgentLoopStatus
Source§impl Debug for AgentLoopStatus
impl Debug for AgentLoopStatus
impl Eq for AgentLoopStatus
Source§impl PartialEq for AgentLoopStatus
impl PartialEq for AgentLoopStatus
impl StructuralPartialEq for AgentLoopStatus
Auto Trait Implementations§
impl Forget for AgentLoopStatus
impl Freeze for AgentLoopStatus
impl Move for AgentLoopStatus
impl RefUnwindSafe for AgentLoopStatus
impl Send for AgentLoopStatuswhere
RawVecInner: Send,
impl Sync for AgentLoopStatuswhere
RawVecInner: Sync,
impl Unpin for AgentLoopStatus
impl UnsafeUnpin for AgentLoopStatus
impl UnwindSafe for AgentLoopStatuswhere
RawVecInner: UnwindSafe,
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.