pub enum SessionOutcome {
Completed,
Failed,
Cancelled,
MaxTurns,
}Expand description
Outcome of a session (the entire conversation).
Variants§
Completed
Session completed normally.
Failed
Session ended with an unrecoverable error.
Cancelled
User cancelled the session.
MaxTurns
Max turns exceeded (safety limit).
Trait Implementations§
Source§impl Clone for SessionOutcome
impl Clone for SessionOutcome
Source§fn clone(&self) -> SessionOutcome
fn clone(&self) -> SessionOutcome
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 moreSource§impl Debug for SessionOutcome
impl Debug for SessionOutcome
Source§impl<'de> Deserialize<'de> for SessionOutcome
impl<'de> Deserialize<'de> for SessionOutcome
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SessionOutcome, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SessionOutcome, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SessionOutcome
Source§impl PartialEq for SessionOutcome
impl PartialEq for SessionOutcome
Source§impl Serialize for SessionOutcome
impl Serialize for SessionOutcome
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SessionOutcome
Auto Trait Implementations§
impl Freeze for SessionOutcome
impl RefUnwindSafe for SessionOutcome
impl Send for SessionOutcome
impl Sync for SessionOutcome
impl Unpin for SessionOutcome
impl UnsafeUnpin for SessionOutcome
impl UnwindSafe for SessionOutcome
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,
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§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.