pub enum RealtimeBetaResponseCreateParamsToolChoice {
Options(ToolChoiceOptions),
Function(ToolChoiceFunction),
Mcp(ToolChoiceMcp),
}Expand description
How the model chooses tools. Provide one of the string modes or force a specific function/MCP tool.
JSON schema
{
"description": "How the model chooses tools. Provide one of the string modes or force a specific\nfunction/MCP tool.\n",
"oneOf": [
{
"$ref": "#/components/schemas/ToolChoiceOptions"
},
{
"$ref": "#/components/schemas/ToolChoiceFunction"
},
{
"$ref": "#/components/schemas/ToolChoiceMCP"
}
]
}Variants§
Trait Implementations§
Source§impl Clone for RealtimeBetaResponseCreateParamsToolChoice
impl Clone for RealtimeBetaResponseCreateParamsToolChoice
Source§fn clone(&self) -> RealtimeBetaResponseCreateParamsToolChoice
fn clone(&self) -> RealtimeBetaResponseCreateParamsToolChoice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for RealtimeBetaResponseCreateParamsToolChoice
impl<'de> Deserialize<'de> for RealtimeBetaResponseCreateParamsToolChoice
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 From<ToolChoiceFunction> for RealtimeBetaResponseCreateParamsToolChoice
impl From<ToolChoiceFunction> for RealtimeBetaResponseCreateParamsToolChoice
Source§fn from(value: ToolChoiceFunction) -> Self
fn from(value: ToolChoiceFunction) -> Self
Converts to this type from the input type.
Source§impl From<ToolChoiceMcp> for RealtimeBetaResponseCreateParamsToolChoice
impl From<ToolChoiceMcp> for RealtimeBetaResponseCreateParamsToolChoice
Source§fn from(value: ToolChoiceMcp) -> Self
fn from(value: ToolChoiceMcp) -> Self
Converts to this type from the input type.
Source§impl From<ToolChoiceOptions> for RealtimeBetaResponseCreateParamsToolChoice
impl From<ToolChoiceOptions> for RealtimeBetaResponseCreateParamsToolChoice
Source§fn from(value: ToolChoiceOptions) -> Self
fn from(value: ToolChoiceOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RealtimeBetaResponseCreateParamsToolChoice
impl RefUnwindSafe for RealtimeBetaResponseCreateParamsToolChoice
impl Send for RealtimeBetaResponseCreateParamsToolChoice
impl Sync for RealtimeBetaResponseCreateParamsToolChoice
impl Unpin for RealtimeBetaResponseCreateParamsToolChoice
impl UnsafeUnpin for RealtimeBetaResponseCreateParamsToolChoice
impl UnwindSafe for RealtimeBetaResponseCreateParamsToolChoice
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