pub enum ToolCallingConvention {
Llama3,
Qwen25,
Phi4,
MistralNemo,
DeepseekV3,
DeepseekR1,
Custom,
}Expand description
Closed enum of tool-calling conventions. See spec/PROTOCOL.md for the
normative behaviour pinned to each value.
Variants§
Llama3
Qwen25
Phi4
MistralNemo
DeepseekV3
DeepseekR1
Custom
Opt-out; layout is implementer-supplied and not pinned by the spec.
Trait Implementations§
Source§impl Clone for ToolCallingConvention
impl Clone for ToolCallingConvention
Source§fn clone(&self) -> ToolCallingConvention
fn clone(&self) -> ToolCallingConvention
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 ToolCallingConvention
impl Debug for ToolCallingConvention
Source§impl<'de> Deserialize<'de> for ToolCallingConvention
impl<'de> Deserialize<'de> for ToolCallingConvention
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 ToolCallingConvention
impl PartialEq for ToolCallingConvention
Source§fn eq(&self, other: &ToolCallingConvention) -> bool
fn eq(&self, other: &ToolCallingConvention) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolCallingConvention
impl Serialize for ToolCallingConvention
impl Copy for ToolCallingConvention
impl Eq for ToolCallingConvention
impl StructuralPartialEq for ToolCallingConvention
Auto Trait Implementations§
impl Freeze for ToolCallingConvention
impl RefUnwindSafe for ToolCallingConvention
impl Send for ToolCallingConvention
impl Sync for ToolCallingConvention
impl Unpin for ToolCallingConvention
impl UnsafeUnpin for ToolCallingConvention
impl UnwindSafe for ToolCallingConvention
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