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: ToolChoiceAllowedToolsConstrains the tools available to the model to a pre-defined set.
Function
For function calling, the type is always function.
Fields
§
function: ToolChoiceFunctionCustom
For custom tool calling, the type is always custom.
Fields
§
custom: ToolChoiceCustomTrait Implementations§
Source§impl Clone for ToolChoiceSpecific
impl Clone for ToolChoiceSpecific
Source§impl Debug for ToolChoiceSpecific
impl Debug for ToolChoiceSpecific
Source§impl<'de> Deserialize<'de> for ToolChoiceSpecific
impl<'de> Deserialize<'de> for ToolChoiceSpecific
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
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