pub enum ToolCallingArgsFormat {
Json,
PythonArgs,
}Variants§
Json
Single JSON object, e.g. {"location":"NYC"}.
PythonArgs
Python-style call expression. Llama-3 with <|python_tag|> uses this.
Trait Implementations§
Source§impl Clone for ToolCallingArgsFormat
impl Clone for ToolCallingArgsFormat
Source§fn clone(&self) -> ToolCallingArgsFormat
fn clone(&self) -> ToolCallingArgsFormat
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 ToolCallingArgsFormat
impl Debug for ToolCallingArgsFormat
Source§impl<'de> Deserialize<'de> for ToolCallingArgsFormat
impl<'de> Deserialize<'de> for ToolCallingArgsFormat
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 ToolCallingArgsFormat
impl PartialEq for ToolCallingArgsFormat
Source§fn eq(&self, other: &ToolCallingArgsFormat) -> bool
fn eq(&self, other: &ToolCallingArgsFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolCallingArgsFormat
impl Serialize for ToolCallingArgsFormat
impl Copy for ToolCallingArgsFormat
impl Eq for ToolCallingArgsFormat
impl StructuralPartialEq for ToolCallingArgsFormat
Auto Trait Implementations§
impl Freeze for ToolCallingArgsFormat
impl RefUnwindSafe for ToolCallingArgsFormat
impl Send for ToolCallingArgsFormat
impl Sync for ToolCallingArgsFormat
impl Unpin for ToolCallingArgsFormat
impl UnsafeUnpin for ToolCallingArgsFormat
impl UnwindSafe for ToolCallingArgsFormat
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