pub struct ToolBuilder(/* private fields */);Expand description
Builder for Tool.
Implementations§
Source§impl ToolBuilder
impl ToolBuilder
pub fn function_declarations( self, value: impl Into<Vec<FunctionDeclaration>>, ) -> Self
pub fn google_search_retrieval( self, value: impl Into<GoogleSearchRetrieval>, ) -> Self
pub fn code_execution(self, value: impl Into<CodeExecution>) -> Self
pub fn google_search(self, value: impl Into<GoogleSearch>) -> Self
pub fn computer_use(self, value: impl Into<ComputerUse>) -> Self
pub fn url_context(self, value: impl Into<UrlContext>) -> Self
pub fn file_search(self, value: impl Into<FileSearch>) -> Self
pub fn mcp_servers(self, value: impl Into<Vec<McpServer>>) -> Self
pub fn google_maps(self, value: impl Into<GoogleMaps>) -> Self
pub fn rest(self, value: Rest) -> Self
Auto Trait Implementations§
impl Freeze for ToolBuilder
impl RefUnwindSafe for ToolBuilder
impl Send for ToolBuilder
impl Sync for ToolBuilder
impl Unpin for ToolBuilder
impl UnsafeUnpin for ToolBuilder
impl UnwindSafe for ToolBuilder
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