pub enum ChatCompletionTools {
Function(ChatCompletionTool),
Custom(CustomToolChatCompletions),
}Variants§
Function(ChatCompletionTool)
A function tool that can be used to generate a response.
Custom(CustomToolChatCompletions)
A custom tool that processes input using a specified format.
Trait Implementations§
Source§impl Clone for ChatCompletionTools
impl Clone for ChatCompletionTools
Source§fn clone(&self) -> ChatCompletionTools
fn clone(&self) -> ChatCompletionTools
Returns a duplicate of the value. Read more
1.0.0 · 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 ChatCompletionTools
impl Debug for ChatCompletionTools
Source§impl<'de> Deserialize<'de> for ChatCompletionTools
impl<'de> Deserialize<'de> for ChatCompletionTools
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 ChatCompletionTools
impl PartialEq for ChatCompletionTools
Source§impl Serialize for ChatCompletionTools
impl Serialize for ChatCompletionTools
impl StructuralPartialEq for ChatCompletionTools
Auto Trait Implementations§
impl Freeze for ChatCompletionTools
impl RefUnwindSafe for ChatCompletionTools
impl Send for ChatCompletionTools
impl Sync for ChatCompletionTools
impl Unpin for ChatCompletionTools
impl UnwindSafe for ChatCompletionTools
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