pub struct EmbeddingProviderFactory { /* private fields */ }Expand description
Factory for EmbeddingProviderComponent.
Implementations§
Trait Implementations§
Source§impl ComponentFactory for EmbeddingProviderFactory
impl ComponentFactory for EmbeddingProviderFactory
Source§fn depends_on(&self) -> Vec<String>
fn depends_on(&self) -> Vec<String>
Names of components this component depends on.
Source§fn build<'life0, 'async_trait>(
self: Box<Self>,
_config: Value,
_ctx: &'life0 ComponentContext,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn AnyComponent>, RegistryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn build<'life0, 'async_trait>(
self: Box<Self>,
_config: Value,
_ctx: &'life0 ComponentContext,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn AnyComponent>, RegistryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Build an
AnyComponent from the raw configuration value.Auto Trait Implementations§
impl !RefUnwindSafe for EmbeddingProviderFactory
impl !UnwindSafe for EmbeddingProviderFactory
impl Freeze for EmbeddingProviderFactory
impl Send for EmbeddingProviderFactory
impl Sync for EmbeddingProviderFactory
impl Unpin for EmbeddingProviderFactory
impl UnsafeUnpin for EmbeddingProviderFactory
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