pub enum AssistantsApiToolChoiceOption {
Text(String),
AssistantsNamedToolChoice(AssistantsNamedToolChoice),
}
Expand description
Controls which (if any) tool is called by the model.
Variants§
Text(String)
none
means the model will not call any tools and instead generates a
message.
AssistantsNamedToolChoice(AssistantsNamedToolChoice)
Trait Implementations§
Source§impl Clone for AssistantsApiToolChoiceOption
impl Clone for AssistantsApiToolChoiceOption
Source§fn clone(&self) -> AssistantsApiToolChoiceOption
fn clone(&self) -> AssistantsApiToolChoiceOption
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 moreAuto Trait Implementations§
impl Freeze for AssistantsApiToolChoiceOption
impl RefUnwindSafe for AssistantsApiToolChoiceOption
impl Send for AssistantsApiToolChoiceOption
impl Sync for AssistantsApiToolChoiceOption
impl Unpin for AssistantsApiToolChoiceOption
impl UnwindSafe for AssistantsApiToolChoiceOption
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