pub enum ToolChoiceSpecific {
AllowedTools {
allowed_tools: ToolChoiceAllowedTools,
},
Function {
function: ToolChoiceFunction,
},
Custom {
custom: ToolChoiceCustom,
},
}
Variants§
AllowedTools
Allowed tool configuration type. Always allowed_tools
.
Fields
§
allowed_tools: ToolChoiceAllowedTools
Constrains the tools available to the model to a pre-defined set.
Function
For function calling, the type is always function
.
Fields
§
function: ToolChoiceFunction
Custom
For custom tool calling, the type is always custom
.
Fields
§
custom: ToolChoiceCustom
Trait Implementations§
Source§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 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