pub enum SessionExecutionState {
Started,
Active,
Idle,
WaitingForToolResults,
Paused,
}Expand description
Neutral session execution state (EVE-882).
The small value host planning and lifecycle transitions operate on:
started: session created, no turn executed yetactive: a turn is currently runningidle: turn completed, session waiting for next inputwaiting_for_tool_results: waiting for the client to submit tool resultspaused: budget limit reached, waiting for the user to resume
The persisted product status enum lives in everruns-platform
(SessionStatus) and maps to/from this value at the adapter boundary; its
wire strings are the SessionExecutionState::as_str values below.
Variants§
Started
Session just created, no turn executed yet.
Active
A turn is currently running (session is active).
Idle
Turn completed, session waiting for next input (idle).
WaitingForToolResults
Waiting for client to submit tool results.
Paused
Budget limit reached — session paused until user resumes or increases limit.
Implementations§
Trait Implementations§
Source§impl Clone for SessionExecutionState
impl Clone for SessionExecutionState
Source§fn clone(&self) -> SessionExecutionState
fn clone(&self) -> SessionExecutionState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SessionExecutionState
Source§impl Debug for SessionExecutionState
impl Debug for SessionExecutionState
Source§impl<'de> Deserialize<'de> for SessionExecutionState
impl<'de> Deserialize<'de> for SessionExecutionState
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 Display for SessionExecutionState
impl Display for SessionExecutionState
impl Eq for SessionExecutionState
Source§impl From<&str> for SessionExecutionState
impl From<&str> for SessionExecutionState
Source§impl PartialEq for SessionExecutionState
impl PartialEq for SessionExecutionState
Source§impl Serialize for SessionExecutionState
impl Serialize for SessionExecutionState
impl StructuralPartialEq for SessionExecutionState
Auto Trait Implementations§
impl Freeze for SessionExecutionState
impl RefUnwindSafe for SessionExecutionState
impl Send for SessionExecutionState
impl Sync for SessionExecutionState
impl Unpin for SessionExecutionState
impl UnsafeUnpin for SessionExecutionState
impl UnwindSafe for SessionExecutionState
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.