pub enum Tool {
FunctionDeclarations(Vec<FunctionDeclaration>),
GoogleSearch(GoogleSearchTool),
}Expand description
Tool declarations made available during setup.
Each entry maps to exactly one top-level tool field on the wire, for
example {"googleSearch": {}} or
{"functionDeclarations": [{...}, {...}]}.
Keep built-in Live tools as first-class enum variants here instead of forcing callers through raw JSON.
Variants§
FunctionDeclarations(Vec<FunctionDeclaration>)
Custom client-side functions that the model may call.
GoogleSearch(GoogleSearchTool)
Google-managed web search executed on the server side.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tool
impl<'de> Deserialize<'de> for Tool
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 StructuralPartialEq for Tool
Auto Trait Implementations§
impl Freeze for Tool
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnsafeUnpin for Tool
impl UnwindSafe for Tool
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