pub enum ToolChoiceSpecific {
Function {
name: String,
},
WebSearch,
Custom {
name: String,
},
}Expand description
A specific tool the model is forced to call.
Variants§
Function
Force a specific function call by name.
WebSearch
Force the built-in web search tool. The tools list must then
include a web_search tool.
Custom
Force a custom tool by name.
Trait Implementations§
Source§impl Clone for ToolChoiceSpecific
impl Clone for ToolChoiceSpecific
Source§fn clone(&self) -> ToolChoiceSpecific
fn clone(&self) -> ToolChoiceSpecific
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 ToolChoiceSpecific
impl Debug for ToolChoiceSpecific
Auto Trait Implementations§
impl Freeze for ToolChoiceSpecific
impl RefUnwindSafe for ToolChoiceSpecific
impl Send for ToolChoiceSpecific
impl Sync for ToolChoiceSpecific
impl Unpin for ToolChoiceSpecific
impl UnsafeUnpin for ToolChoiceSpecific
impl UnwindSafe for ToolChoiceSpecific
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