pub struct VectorStoreTool<E, M, V>{
pub store: V,
pub topic: String,
pub topic_context: String,
/* private fields */
}Fields§
§store: V§topic: String§topic_context: StringImplementations§
Source§impl<E, M, V> VectorStoreTool<E, M, V>
impl<E, M, V> VectorStoreTool<E, M, V>
Trait Implementations§
Source§impl<E, M, V> Tool for VectorStoreTool<E, M, V>where
E: Embeddings + Sync + Send,
V: VectorStore<E, M> + Sync + Send,
M: Sync + Send + Serialize + DeserializeOwned,
Self: 'static,
impl<E, M, V> Tool for VectorStoreTool<E, M, V>where
E: Embeddings + Sync + Send,
V: VectorStore<E, M> + Sync + Send,
M: Sync + Send + Serialize + DeserializeOwned,
Self: 'static,
type Input = VectorStoreToolInput
type Output = VectorStoreToolOutput
type Error = VectorStoreToolError<<V as VectorStore<E, M>>::Error, <E as Embeddings>::Error>
fn invoke_typed<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 Self::Input,
) -> Pin<Box<dyn Future<Output = Result<Self::Output, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn description(&self) -> ToolDescription
fn description(&self) -> ToolDescription
Returns the
ToolDescription containing metadata about the tool.Auto Trait Implementations§
impl<E, M, V> Freeze for VectorStoreTool<E, M, V>where
V: Freeze,
impl<E, M, V> RefUnwindSafe for VectorStoreTool<E, M, V>
impl<E, M, V> Send for VectorStoreTool<E, M, V>
impl<E, M, V> Sync for VectorStoreTool<E, M, V>
impl<E, M, V> Unpin for VectorStoreTool<E, M, V>
impl<E, M, V> UnwindSafe for VectorStoreTool<E, M, V>
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