pub enum StopReasonType {
EndTurn,
Error,
InvalidToolCall,
MaxSteps,
NoToolCall,
ToolRule,
}Expand description
Stop reason types supported by Letta.
Variants§
EndTurn
End of conversation turn.
Error
Error occurred.
InvalidToolCall
Invalid tool call.
MaxSteps
Maximum steps reached.
NoToolCall
No tool call made.
ToolRule
Tool rule triggered.
Trait Implementations§
Source§impl Clone for StopReasonType
impl Clone for StopReasonType
Source§fn clone(&self) -> StopReasonType
fn clone(&self) -> StopReasonType
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 StopReasonType
Source§impl Debug for StopReasonType
impl Debug for StopReasonType
Source§impl<'de> Deserialize<'de> for StopReasonType
impl<'de> Deserialize<'de> for StopReasonType
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 StopReasonType
Source§impl PartialEq for StopReasonType
impl PartialEq for StopReasonType
Source§impl Serialize for StopReasonType
impl Serialize for StopReasonType
impl StructuralPartialEq for StopReasonType
Auto Trait Implementations§
impl Freeze for StopReasonType
impl RefUnwindSafe for StopReasonType
impl Send for StopReasonType
impl Sync for StopReasonType
impl Unpin for StopReasonType
impl UnsafeUnpin for StopReasonType
impl UnwindSafe for StopReasonType
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