pub enum TurnEndStatus {
Completed,
Interrupted {
reason: Option<String>,
},
Error(Notice),
}Variants§
Completed
Interrupted
Error(Notice)
The turn failed. kind is the LLM error kind, absent for a non-LLM
error. Notably "oauth" means the provider’s sign-in is missing,
expired, or revoked, and only re-authenticating can recover; clients
may offer their sign-in flow for the session’s provider. For a
classified LLM failure headline reads as that kind, e.g. “rate
limited”, and details carry the cause, e.g. [“HTTP 400 Bad
Request”, “
Trait Implementations§
Source§impl Clone for TurnEndStatus
impl Clone for TurnEndStatus
Source§impl Debug for TurnEndStatus
impl Debug for TurnEndStatus
Source§impl<'de> Deserialize<'de> for TurnEndStatus
impl<'de> Deserialize<'de> for TurnEndStatus
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
Auto Trait Implementations§
impl Forget for TurnEndStatus
impl Freeze for TurnEndStatus
impl Move for TurnEndStatus
impl RefUnwindSafe for TurnEndStatus
impl Send for TurnEndStatuswhere
RawVecInner: Send,
impl Sync for TurnEndStatuswhere
RawVecInner: Sync,
impl Unpin for TurnEndStatus
impl UnsafeUnpin for TurnEndStatuswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for TurnEndStatuswhere
RawVecInner: UnwindSafe,
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