pub enum InteractionsTool {
Function(Function),
GoogleSearch {},
CodeExecution {},
UrlContext {},
McpServer {
name: Option<String>,
url: Option<String>,
headers: Option<HashMap<String, String>>,
allowed_tools: Option<AllowedTools>,
},
FileSearch {
file_search_store_names: Option<Vec<String>>,
top_k: Option<u32>,
metadata_filter: Option<String>,
},
}Expand description
Interaction tool types See: https://ai.google.dev/api/interactions-api#Resource:Tool
Variants§
Function(Function)
Function tool with function declaration
GoogleSearch
Google Search built-in tool
CodeExecution
Code Execution built-in tool
UrlContext
URL Context built-in tool
McpServer
MCP Server tool
Fields
§
allowed_tools: Option<AllowedTools>FileSearch
File Search built-in tool
Trait Implementations§
Source§impl Clone for InteractionsTool
impl Clone for InteractionsTool
Source§fn clone(&self) -> InteractionsTool
fn clone(&self) -> InteractionsTool
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InteractionsTool
impl Debug for InteractionsTool
Source§impl<'de> Deserialize<'de> for InteractionsTool
impl<'de> Deserialize<'de> for InteractionsTool
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 InteractionsTool
impl RefUnwindSafe for InteractionsTool
impl Send for InteractionsTool
impl Sync for InteractionsTool
impl Unpin for InteractionsTool
impl UnsafeUnpin for InteractionsTool
impl UnwindSafe for InteractionsTool
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