pub enum AssistantToolCall {
Function {
id: String,
function: ToolCallFunction,
},
Custom {
id: String,
custom: ToolCallCustom,
},
}
Variants§
Function
Fields
§
function: ToolCallFunction
The function that the model called.
Custom
Fields
§
custom: ToolCallCustom
The custom tool that the model called.
Trait Implementations§
Source§impl Debug for AssistantToolCall
impl Debug for AssistantToolCall
Source§impl<'de> Deserialize<'de> for AssistantToolCall
impl<'de> Deserialize<'de> for AssistantToolCall
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
Auto Trait Implementations§
impl Freeze for AssistantToolCall
impl RefUnwindSafe for AssistantToolCall
impl Send for AssistantToolCall
impl Sync for AssistantToolCall
impl Unpin for AssistantToolCall
impl UnwindSafe for AssistantToolCall
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