pub enum AnthropicStopReason {
EndTurn,
MaxTokens,
StopSequence,
ToolUse,
PauseTurn,
Refusal,
}Expand description
Reason the model stopped generating.
Variants§
EndTurn
MaxTokens
StopSequence
ToolUse
PauseTurn
The model paused to yield control in an agentic loop, intending to continue in a subsequent turn. Used with extended thinking / tool use.
Refusal
The model refused to generate content (safety refusal).
Trait Implementations§
Source§impl Clone for AnthropicStopReason
impl Clone for AnthropicStopReason
Source§fn clone(&self) -> AnthropicStopReason
fn clone(&self) -> AnthropicStopReason
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 AnthropicStopReason
impl Debug for AnthropicStopReason
Source§impl<'de> Deserialize<'de> for AnthropicStopReason
impl<'de> Deserialize<'de> for AnthropicStopReason
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 AnthropicStopReason
Source§impl PartialEq for AnthropicStopReason
impl PartialEq for AnthropicStopReason
Source§impl Serialize for AnthropicStopReason
impl Serialize for AnthropicStopReason
impl StructuralPartialEq for AnthropicStopReason
Auto Trait Implementations§
impl Freeze for AnthropicStopReason
impl RefUnwindSafe for AnthropicStopReason
impl Send for AnthropicStopReason
impl Sync for AnthropicStopReason
impl Unpin for AnthropicStopReason
impl UnsafeUnpin for AnthropicStopReason
impl UnwindSafe for AnthropicStopReason
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