Skip to main content

FamilyProviderFactory

Trait FamilyProviderFactory 

pub trait FamilyProviderFactory {
    // Required method
    fn create_provider(
        &self,
        alias: &str,
        key: Option<&str>,
        api_url: Option<&str>,
        opts: &ModelProviderRuntimeOptions,
    ) -> Result<Box<dyn ModelProvider>, Error>;

    // Provided method
    fn fallback_auth_ready(
        &self,
        key: Option<&str>,
        _opts: &ModelProviderRuntimeOptions,
    ) -> bool { ... }
}

Required Methods§

Source

fn create_provider( &self, alias: &str, key: Option<&str>, api_url: Option<&str>, opts: &ModelProviderRuntimeOptions, ) -> Result<Box<dyn ModelProvider>, Error>

Provided Methods§

Implementors§