pub enum ToolChoiceOption {
Auto,
None,
Required,
Tool(ToolChoiceTool),
}Expand description
Determines how the model should choose which tool to use.
- “auto” The model will automatically choose the tool to use or not use any tools.
- “none” The model will not use any tools.
- “required” The model will be forced to use a tool.
- { type: “tool”, toolName: “toolName” } The model will use the specified tool.
Variants§
Auto
The model will automatically choose the tool to use or not use any tools.
None
The model will not use any tools.
Required
The model will be forced to use a tool.
Tool(ToolChoiceTool)
The model will use the specified tool.
Trait Implementations§
Source§impl Clone for ToolChoiceOption
impl Clone for ToolChoiceOption
Source§fn clone(&self) -> ToolChoiceOption
fn clone(&self) -> ToolChoiceOption
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 ToolChoiceOption
impl Debug for ToolChoiceOption
Source§impl<'de> Deserialize<'de> for ToolChoiceOption
impl<'de> Deserialize<'de> for ToolChoiceOption
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 ToolChoiceOption
impl PartialEq for ToolChoiceOption
Source§impl Serialize for ToolChoiceOption
impl Serialize for ToolChoiceOption
impl StructuralPartialEq for ToolChoiceOption
Auto Trait Implementations§
impl Freeze for ToolChoiceOption
impl RefUnwindSafe for ToolChoiceOption
impl Send for ToolChoiceOption
impl Sync for ToolChoiceOption
impl Unpin for ToolChoiceOption
impl UnwindSafe for ToolChoiceOption
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