Skip to main content

RuntimeProviderStore

Trait RuntimeProviderStore 

Source
pub trait RuntimeProviderStore:
    LlmProviderStore
    + Send
    + Sync {
    // Required method
    fn set_default_model<'life0, 'async_trait>(
        &'life0 self,
        model: ModelWithProvider,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Provider store contract for runtime lookup and default-model configuration.

Required Methods§

Source

fn set_default_model<'life0, 'async_trait>( &'life0 self, model: ModelWithProvider, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Set the runtime default model.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl RuntimeProviderStore for InMemoryLlmProviderStore

Source§

fn set_default_model<'life0, 'async_trait>( &'life0 self, model: ModelWithProvider, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§