pub struct WebsearchToolInvoker;Expand description
Websearch tool invoker
Invokes the websearch tool to search the web.
Trait Implementations§
Source§impl ToolInvoker for WebsearchToolInvoker
impl ToolInvoker for WebsearchToolInvoker
Source§fn invoke<'life0, 'async_trait>(
&'life0 self,
input: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn invoke<'life0, 'async_trait>(
&'life0 self,
input: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Invoke the tool with the given input Read more
Source§fn metadata(&self) -> ToolMetadata
fn metadata(&self) -> ToolMetadata
Get metadata about this tool
Auto Trait Implementations§
impl Freeze for WebsearchToolInvoker
impl RefUnwindSafe for WebsearchToolInvoker
impl Send for WebsearchToolInvoker
impl Sync for WebsearchToolInvoker
impl Unpin for WebsearchToolInvoker
impl UnwindSafe for WebsearchToolInvoker
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