pub enum AssistantToolCall {
Function {
id: String,
function: ToolCallFunction,
},
Custom {
id: String,
custom: ToolCallCustom,
},
}Variants§
Function
Fields
§
function: ToolCallFunctionThe function that the model called.
Custom
Fields
§
custom: ToolCallCustomThe custom tool that the model called.
Trait Implementations§
Source§impl Clone for AssistantToolCall
impl Clone for AssistantToolCall
Source§fn clone(&self) -> AssistantToolCall
fn clone(&self) -> AssistantToolCall
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 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 UnsafeUnpin 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