pub trait EmbeddingProvider:
Send
+ Sync
+ 'static {
// Required method
fn embed<'a>(
&'a self,
text: &'a str,
) -> Pin<Box<dyn Future<Output = Result<Vec<f32>, SdkError>> + Send + 'a>>;
}Expand description
Produces dense vector embeddings for semantic memory search.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".