Skip to main content

CanBuildProvider

Trait CanBuildProvider 

Source
pub trait CanBuildProvider {
    // Required method
    fn build_provider(config: FactoryProviderConfig) -> Box<dyn LLMProvider>;
}
Expand description

Ergonomic blanket consumer over the provider build component.

Required Methods§

Source

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".

Implementors§