pub enum ModelToolChoice {
Auto,
None,
Required,
Specific,
}Expand description
Provider-neutral tool-selection control.
Variants§
Auto
The model decides whether and which tool to call.
None
Tool calls are disabled for this request.
Required
At least one supplied tool must be called.
Specific
One named supplied tool must be called.
Trait Implementations§
Source§impl Clone for ModelToolChoice
impl Clone for ModelToolChoice
impl Copy for ModelToolChoice
Source§impl Debug for ModelToolChoice
impl Debug for ModelToolChoice
Source§impl<'de> Deserialize<'de> for ModelToolChoice
impl<'de> Deserialize<'de> for ModelToolChoice
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
impl Eq for ModelToolChoice
Source§impl Hash for ModelToolChoice
impl Hash for ModelToolChoice
Source§impl JsonSchema for ModelToolChoice
impl JsonSchema for ModelToolChoice
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for ModelToolChoice
impl Ord for ModelToolChoice
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ModelToolChoice
impl PartialEq for ModelToolChoice
Source§impl PartialOrd for ModelToolChoice
impl PartialOrd for ModelToolChoice
Source§impl Serialize for ModelToolChoice
impl Serialize for ModelToolChoice
impl StructuralPartialEq for ModelToolChoice
Auto Trait Implementations§
impl Forget for ModelToolChoice
impl Freeze for ModelToolChoice
impl Move for ModelToolChoice
impl RefUnwindSafe for ModelToolChoice
impl Send for ModelToolChoice
impl Sync for ModelToolChoice
impl Unpin for ModelToolChoice
impl UnsafeUnpin for ModelToolChoice
impl UnwindSafe for ModelToolChoice
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