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