pub struct ChatProviderFactory { /* private fields */ }Expand description
Factory for ChatProviderComponent that takes a pre-built
Arc<dyn ChatProvider> and registers it under the given name.
Implementations§
Trait Implementations§
Source§impl ComponentFactory for ChatProviderFactory
impl ComponentFactory for ChatProviderFactory
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 ChatProviderFactory
impl !UnwindSafe for ChatProviderFactory
impl Freeze for ChatProviderFactory
impl Send for ChatProviderFactory
impl Sync for ChatProviderFactory
impl Unpin for ChatProviderFactory
impl UnsafeUnpin for ChatProviderFactory
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