pub enum WaitReason {
Approval,
UserInput,
RateLimit,
External,
Checkpoint,
CostThreshold,
MemoryPressure,
SubAgent,
}Expand description
Reason for waiting state
This enum covers all documented wait scenarios for long-running executions. @see docs/TECHNICAL/27-LONG-RUNNING-EXECUTIONS.md @see docs/TECHNICAL/31-MID-EXECUTION-GUIDANCE.md
Variants§
Approval
Waiting for human approval (HITL)
UserInput
Waiting for user input
RateLimit
Waiting due to rate limits
External
Waiting for an external dependency (API, tool, resource)
Checkpoint
Waiting for checkpoint operation to complete
CostThreshold
Waiting due to cost threshold reached (enforcement middleware)
MemoryPressure
Waiting due to memory pressure (context compaction needed)
SubAgent
Waiting for sub-agent execution to complete
Trait Implementations§
Source§impl Clone for WaitReason
impl Clone for WaitReason
Source§fn clone(&self) -> WaitReason
fn clone(&self) -> WaitReason
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WaitReason
impl Debug for WaitReason
Source§impl<'de> Deserialize<'de> for WaitReason
impl<'de> Deserialize<'de> for WaitReason
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
Source§impl Hash for WaitReason
impl Hash for WaitReason
Source§impl PartialEq for WaitReason
impl PartialEq for WaitReason
Source§impl Serialize for WaitReason
impl Serialize for WaitReason
impl Copy for WaitReason
impl Eq for WaitReason
impl StructuralPartialEq for WaitReason
Auto Trait Implementations§
impl Freeze for WaitReason
impl RefUnwindSafe for WaitReason
impl Send for WaitReason
impl Sync for WaitReason
impl Unpin for WaitReason
impl UnsafeUnpin for WaitReason
impl UnwindSafe for WaitReason
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
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§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.