pub enum ToolChoiceAllowedToolsMode {
Auto,
Required,
}
Expand description
The mode for allowed tools in tool choice.
Controls how the model should handle the set of allowed tools:
auto
allows the model to pick from among the allowed tools and generate a message.required
requires the model to call one or more of the allowed tools.
Variants§
Auto
The model can choose whether to use the allowed tools or not.
Required
The model must use at least one of the allowed tools.
Trait Implementations§
Source§impl Clone for ToolChoiceAllowedToolsMode
impl Clone for ToolChoiceAllowedToolsMode
Source§fn clone(&self) -> ToolChoiceAllowedToolsMode
fn clone(&self) -> ToolChoiceAllowedToolsMode
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 ToolChoiceAllowedToolsMode
impl Debug for ToolChoiceAllowedToolsMode
Auto Trait Implementations§
impl Freeze for ToolChoiceAllowedToolsMode
impl RefUnwindSafe for ToolChoiceAllowedToolsMode
impl Send for ToolChoiceAllowedToolsMode
impl Sync for ToolChoiceAllowedToolsMode
impl Unpin for ToolChoiceAllowedToolsMode
impl UnwindSafe for ToolChoiceAllowedToolsMode
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