pub struct ExaBackend { /* private fields */ }Expand description
Exa neural search backend.
Implementations§
Source§impl ExaBackend
impl ExaBackend
Trait Implementations§
Source§impl Clone for ExaBackend
impl Clone for ExaBackend
Source§fn clone(&self) -> ExaBackend
fn clone(&self) -> ExaBackend
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 Debug for ExaBackend
impl Debug for ExaBackend
Source§impl SearchBackend for ExaBackend
impl SearchBackend for ExaBackend
Source§fn label(&self) -> &'static str
fn label(&self) -> &'static str
Stable backend/tool label (
"tavily", …); the tool name is {label}_search.Source§fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
top_k: usize,
_include_answer: bool,
) -> Pin<Box<dyn Future<Output = Result<BackendResponse, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
top_k: usize,
_include_answer: bool,
) -> Pin<Box<dyn Future<Output = Result<BackendResponse, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Runs the provider-specific HTTP call and parses the response.
Auto Trait Implementations§
impl !RefUnwindSafe for ExaBackend
impl !UnwindSafe for ExaBackend
impl Freeze for ExaBackend
impl Send for ExaBackend
impl Sync for ExaBackend
impl Unpin for ExaBackend
impl UnsafeUnpin for ExaBackend
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