#[non_exhaustive]pub enum TurnEndReason {
Complete,
ToolsExecuted,
SteeringInterrupt,
Error,
Cancelled,
Aborted,
Transfer,
}Expand description
Why a turn ended.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Complete
Assistant completed without requesting tool calls.
ToolsExecuted
Tools were executed (loop continues).
SteeringInterrupt
Turn was interrupted by a steering message during tool execution.
Error
LLM returned an error stop reason.
Cancelled
External cancellation via CancellationToken.
Aborted
Stream was aborted mid-generation.
Transfer
Turn ended due to a transfer signal from a tool.
Trait Implementations§
Source§impl Clone for TurnEndReason
impl Clone for TurnEndReason
Source§fn clone(&self) -> TurnEndReason
fn clone(&self) -> TurnEndReason
Returns a duplicate of the value. Read more
1.0.0 · 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 TurnEndReason
impl Debug for TurnEndReason
Source§impl<'de> Deserialize<'de> for TurnEndReason
impl<'de> Deserialize<'de> for TurnEndReason
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 PartialEq for TurnEndReason
impl PartialEq for TurnEndReason
Source§impl Serialize for TurnEndReason
impl Serialize for TurnEndReason
impl Copy for TurnEndReason
impl Eq for TurnEndReason
impl StructuralPartialEq for TurnEndReason
Auto Trait Implementations§
impl Freeze for TurnEndReason
impl RefUnwindSafe for TurnEndReason
impl Send for TurnEndReason
impl Sync for TurnEndReason
impl Unpin for TurnEndReason
impl UnsafeUnpin for TurnEndReason
impl UnwindSafe for TurnEndReason
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