pub struct EmbeddingTools {
pub memory: Arc<SelfLearningMemory>,
}Expand description
Embedding tools implementation
Fields§
§memory: Arc<SelfLearningMemory>Implementations§
Source§impl EmbeddingTools
impl EmbeddingTools
pub fn new(memory: Arc<SelfLearningMemory>) -> Self
Source§impl EmbeddingTools
impl EmbeddingTools
Sourcepub async fn execute_configure_embeddings(
&self,
input: ConfigureEmbeddingsInput,
) -> Result<ConfigureEmbeddingsOutput>
pub async fn execute_configure_embeddings( &self, input: ConfigureEmbeddingsInput, ) -> Result<ConfigureEmbeddingsOutput>
Execute the configure_embeddings tool
Source§impl EmbeddingTools
impl EmbeddingTools
Sourcepub async fn execute_generate_embedding(
&self,
input: GenerateEmbeddingInput,
) -> Result<GenerateEmbeddingOutput>
pub async fn execute_generate_embedding( &self, input: GenerateEmbeddingInput, ) -> Result<GenerateEmbeddingOutput>
Execute the generate_embedding tool
Sourcepub async fn execute_search_by_embedding(
&self,
input: SearchByEmbeddingInput,
) -> Result<SearchByEmbeddingOutput>
pub async fn execute_search_by_embedding( &self, input: SearchByEmbeddingInput, ) -> Result<SearchByEmbeddingOutput>
Execute the search_by_embedding tool
Source§impl EmbeddingTools
impl EmbeddingTools
Sourcepub async fn execute_query_semantic_memory(
&self,
input: QuerySemanticMemoryInput,
) -> Result<QuerySemanticMemoryOutput>
pub async fn execute_query_semantic_memory( &self, input: QuerySemanticMemoryInput, ) -> Result<QuerySemanticMemoryOutput>
Execute the query_semantic_memory tool
Source§impl EmbeddingTools
impl EmbeddingTools
Sourcepub async fn execute_test_embeddings(&self) -> Result<TestEmbeddingsOutput>
pub async fn execute_test_embeddings(&self) -> Result<TestEmbeddingsOutput>
Execute the test_embeddings tool
Sourcepub async fn execute_embedding_provider_status(
&self,
input: EmbeddingProviderStatusInput,
) -> Result<EmbeddingProviderStatusOutput>
pub async fn execute_embedding_provider_status( &self, input: EmbeddingProviderStatusInput, ) -> Result<EmbeddingProviderStatusOutput>
Execute the embedding_provider_status tool
Auto Trait Implementations§
impl Freeze for EmbeddingTools
impl !RefUnwindSafe for EmbeddingTools
impl Send for EmbeddingTools
impl Sync for EmbeddingTools
impl Unpin for EmbeddingTools
impl UnsafeUnpin for EmbeddingTools
impl !UnwindSafe for EmbeddingTools
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.