pub enum RealtimeSessionCreateResponseGaToolChoice {
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 RealtimeSessionCreateResponseGaToolChoice
impl Clone for RealtimeSessionCreateResponseGaToolChoice
Source§fn clone(&self) -> RealtimeSessionCreateResponseGaToolChoice
fn clone(&self) -> RealtimeSessionCreateResponseGaToolChoice
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 RealtimeSessionCreateResponseGaToolChoice
impl<'de> Deserialize<'de> for RealtimeSessionCreateResponseGaToolChoice
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 RealtimeSessionCreateResponseGaToolChoice
impl From<ToolChoiceFunction> for RealtimeSessionCreateResponseGaToolChoice
Source§fn from(value: ToolChoiceFunction) -> Self
fn from(value: ToolChoiceFunction) -> Self
Converts to this type from the input type.
Source§impl From<ToolChoiceMcp> for RealtimeSessionCreateResponseGaToolChoice
impl From<ToolChoiceMcp> for RealtimeSessionCreateResponseGaToolChoice
Source§fn from(value: ToolChoiceMcp) -> Self
fn from(value: ToolChoiceMcp) -> Self
Converts to this type from the input type.
Source§impl From<ToolChoiceOptions> for RealtimeSessionCreateResponseGaToolChoice
impl From<ToolChoiceOptions> for RealtimeSessionCreateResponseGaToolChoice
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 RealtimeSessionCreateResponseGaToolChoice
impl RefUnwindSafe for RealtimeSessionCreateResponseGaToolChoice
impl Send for RealtimeSessionCreateResponseGaToolChoice
impl Sync for RealtimeSessionCreateResponseGaToolChoice
impl Unpin for RealtimeSessionCreateResponseGaToolChoice
impl UnsafeUnpin for RealtimeSessionCreateResponseGaToolChoice
impl UnwindSafe for RealtimeSessionCreateResponseGaToolChoice
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