pub enum ChatToolChoice {
None,
Auto,
Required,
Function(String),
}Expand description
Tool choice configuration for chat completions.
Variants§
None
Model will not call any tool.
Auto
Model decides whether to call a tool.
Required
Model must call at least one tool.
Function(String)
Model must call the named function.
Trait Implementations§
Source§impl Clone for ChatToolChoice
impl Clone for ChatToolChoice
Source§fn clone(&self) -> ChatToolChoice
fn clone(&self) -> ChatToolChoice
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 moreAuto Trait Implementations§
impl Freeze for ChatToolChoice
impl RefUnwindSafe for ChatToolChoice
impl Send for ChatToolChoice
impl Sync for ChatToolChoice
impl Unpin for ChatToolChoice
impl UnsafeUnpin for ChatToolChoice
impl UnwindSafe for ChatToolChoice
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