pub enum ToolChoice {
Auto,
None,
Required,
Specific(Name),
}Expand description
Provider-neutral tool-selection behavior.
Variants§
Auto
Let the model decide whether to call a tool.
None
Disable tool calls.
Required
Require some tool call.
Specific(Name)
Require one named local tool.
Trait Implementations§
Source§impl Clone for ToolChoice
impl Clone for ToolChoice
Auto Trait Implementations§
impl Freeze for ToolChoice
impl RefUnwindSafe for ToolChoice
impl Send for ToolChoice
impl Sync for ToolChoice
impl Unpin for ToolChoice
impl UnsafeUnpin for ToolChoice
impl UnwindSafe for ToolChoice
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