pub trait ProviderBuilder: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn create(&self, config: &Config) -> Result<Box<dyn AIProvider>>;
// Provided methods
fn aliases(&self) -> Vec<&'static str> { ... }
fn category(&self) -> ProviderCategory { ... }
fn requires_api_key(&self) -> bool { ... }
fn default_model(&self) -> Option<&'static str> { ... }
}Expand description
Trait for building AI provider instances
Required Methods§
Provided Methods§
Sourcefn category(&self) -> ProviderCategory
fn category(&self) -> ProviderCategory
Provider category for documentation
Sourcefn requires_api_key(&self) -> bool
fn requires_api_key(&self) -> bool
Whether this provider requires an API key
Sourcefn default_model(&self) -> Option<&'static str>
fn default_model(&self) -> Option<&'static str>
Default model for this provider (if applicable)