pub trait ProviderBuildProvider<Ctx>: Send + Sync {
// Required method
fn build_provider(config: FactoryProviderConfig) -> Box<dyn LLMProvider>;
}Expand description
Provider trait for constructing boxed providers from factory config.
Required Methods§
Sourcefn build_provider(config: FactoryProviderConfig) -> Box<dyn LLMProvider>
fn build_provider(config: FactoryProviderConfig) -> Box<dyn LLMProvider>
Construct a boxed LLMProvider from the given factory configuration.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".