pub enum ToolChoiceFunctionType {
Function,
}Expand description
For function calling, the type is always function.
JSON schema
{
"description": "For function calling, the type is always `function`.",
"type": "string",
"enum": [
"function"
],
"x-stainless-const": true
}Variants§
Function
Trait Implementations§
Source§impl Clone for ToolChoiceFunctionType
impl Clone for ToolChoiceFunctionType
Source§fn clone(&self) -> ToolChoiceFunctionType
fn clone(&self) -> ToolChoiceFunctionType
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 ToolChoiceFunctionType
Source§impl Debug for ToolChoiceFunctionType
impl Debug for ToolChoiceFunctionType
Source§impl<'de> Deserialize<'de> for ToolChoiceFunctionType
impl<'de> Deserialize<'de> for ToolChoiceFunctionType
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 Display for ToolChoiceFunctionType
impl Display for ToolChoiceFunctionType
impl Eq for ToolChoiceFunctionType
Source§impl FromStr for ToolChoiceFunctionType
impl FromStr for ToolChoiceFunctionType
Source§impl Hash for ToolChoiceFunctionType
impl Hash for ToolChoiceFunctionType
Source§impl Ord for ToolChoiceFunctionType
impl Ord for ToolChoiceFunctionType
Source§fn cmp(&self, other: &ToolChoiceFunctionType) -> Ordering
fn cmp(&self, other: &ToolChoiceFunctionType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ToolChoiceFunctionType
impl PartialEq for ToolChoiceFunctionType
Source§impl PartialOrd for ToolChoiceFunctionType
impl PartialOrd for ToolChoiceFunctionType
Source§impl Serialize for ToolChoiceFunctionType
impl Serialize for ToolChoiceFunctionType
impl StructuralPartialEq for ToolChoiceFunctionType
Source§impl TryFrom<&String> for ToolChoiceFunctionType
impl TryFrom<&String> for ToolChoiceFunctionType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for ToolChoiceFunctionType
impl TryFrom<&str> for ToolChoiceFunctionType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for ToolChoiceFunctionType
impl TryFrom<String> for ToolChoiceFunctionType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ToolChoiceFunctionType
impl RefUnwindSafe for ToolChoiceFunctionType
impl Send for ToolChoiceFunctionType
impl Sync for ToolChoiceFunctionType
impl Unpin for ToolChoiceFunctionType
impl UnsafeUnpin for ToolChoiceFunctionType
impl UnwindSafe for ToolChoiceFunctionType
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