pub struct ChatCompletionFunctionTool {
pub function: Value,
pub type_: String,
}Expand description
A function tool that can be used to generate a response.
Fields§
§function: Value§type_: StringThe type of the tool. Currently, only function is supported.
Trait Implementations§
Source§impl Clone for ChatCompletionFunctionTool
impl Clone for ChatCompletionFunctionTool
Source§fn clone(&self) -> ChatCompletionFunctionTool
fn clone(&self) -> ChatCompletionFunctionTool
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 ChatCompletionFunctionTool
impl Debug for ChatCompletionFunctionTool
Source§impl<'de> Deserialize<'de> for ChatCompletionFunctionTool
impl<'de> Deserialize<'de> for ChatCompletionFunctionTool
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 ChatCompletionFunctionTool
impl RefUnwindSafe for ChatCompletionFunctionTool
impl Send for ChatCompletionFunctionTool
impl Sync for ChatCompletionFunctionTool
impl Unpin for ChatCompletionFunctionTool
impl UnsafeUnpin for ChatCompletionFunctionTool
impl UnwindSafe for ChatCompletionFunctionTool
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