pub enum LoopState {
CallingLlm,
WaitingForOps,
DrainingEvents,
Cancelling,
ErrorRecovery,
Completed,
}Expand description
States of the core agent loop
Variants§
CallingLlm
Waiting for LLM response
WaitingForOps
No LLM work, waiting for operation completions
DrainingEvents
Processing buffered operation events
Cancelling
Cleanup on interrupt or budget exhaustion
ErrorRecovery
Retry logic for transient LLM failures
Completed
Terminal state
Implementations§
Source§impl LoopState
impl LoopState
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Check if this is a terminal state
Sourcepub fn is_waiting(&self) -> bool
pub fn is_waiting(&self) -> bool
Check if we’re actively waiting for external input
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LoopState
impl<'de> Deserialize<'de> for LoopState
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 LoopState
impl StructuralPartialEq for LoopState
Auto Trait Implementations§
impl Freeze for LoopState
impl RefUnwindSafe for LoopState
impl Send for LoopState
impl Sync for LoopState
impl Unpin for LoopState
impl UnsafeUnpin for LoopState
impl UnwindSafe for LoopState
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.