pub struct ChatCompletionNamedToolChoice {
pub function: ChatCompletionNamedToolChoiceFunction,
}
Expand description
Specifies a tool the model should use. Use to force the model to call a specific function.
Fields§
§function: ChatCompletionNamedToolChoiceFunction
Implementations§
Trait Implementations§
Source§impl Clone for ChatCompletionNamedToolChoice
impl Clone for ChatCompletionNamedToolChoice
Source§fn clone(&self) -> ChatCompletionNamedToolChoice
fn clone(&self) -> ChatCompletionNamedToolChoice
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<'de> Deserialize<'de> for ChatCompletionNamedToolChoice
impl<'de> Deserialize<'de> for ChatCompletionNamedToolChoice
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 ChatCompletionNamedToolChoice
impl PartialEq for ChatCompletionNamedToolChoice
Source§fn eq(&self, other: &ChatCompletionNamedToolChoice) -> bool
fn eq(&self, other: &ChatCompletionNamedToolChoice) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ChatCompletionNamedToolChoice
Auto Trait Implementations§
impl Freeze for ChatCompletionNamedToolChoice
impl RefUnwindSafe for ChatCompletionNamedToolChoice
impl Send for ChatCompletionNamedToolChoice
impl Sync for ChatCompletionNamedToolChoice
impl Unpin for ChatCompletionNamedToolChoice
impl UnwindSafe for ChatCompletionNamedToolChoice
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