Enum LifecycleActivity
pub enum LifecycleActivity {
Idle,
Turn,
Tool,
Approval,
Finished,
}Expand description
Content-free activity class mapped into LifecycleState.
Producers retain their local detail (for example thinking versus response streaming) and classify it here only when projecting external lifecycle state. This keeps the state transition rule in one API-owned location.
Variants§
Idle
Waiting for a new turn.
Turn
A model turn is in flight.
Tool
A tool call is in flight.
Approval
The turn is waiting for approval or structured operator input.
Finished
The session has finished and released ownership.
Implementations§
Source§impl LifecycleActivity
impl LifecycleActivity
Sourcepub const fn state(self) -> LifecycleState
pub const fn state(self) -> LifecycleState
Map this activity to the canonical lifecycle state.
Trait Implementations§
Source§impl Clone for LifecycleActivity
impl Clone for LifecycleActivity
Source§fn clone(&self) -> LifecycleActivity
fn clone(&self) -> LifecycleActivity
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 LifecycleActivity
Source§impl Debug for LifecycleActivity
impl Debug for LifecycleActivity
Source§impl<'de> Deserialize<'de> for LifecycleActivity
impl<'de> Deserialize<'de> for LifecycleActivity
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 LifecycleActivity
Source§impl Hash for LifecycleActivity
impl Hash for LifecycleActivity
Source§impl PartialEq for LifecycleActivity
impl PartialEq for LifecycleActivity
Source§impl Serialize for LifecycleActivity
impl Serialize for LifecycleActivity
impl StructuralPartialEq for LifecycleActivity
Auto Trait Implementations§
impl Freeze for LifecycleActivity
impl RefUnwindSafe for LifecycleActivity
impl Send for LifecycleActivity
impl Sync for LifecycleActivity
impl Unpin for LifecycleActivity
impl UnsafeUnpin for LifecycleActivity
impl UnwindSafe for LifecycleActivity
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