pub struct BuiltinProviderEntry {
pub id: String,
pub display_name: String,
pub aliases: Vec<String>,
pub api: String,
pub env_key: String,
pub extra_env_keys: Vec<String>,
pub base_url: String,
pub auth_method: AuthMethod,
pub extra_headers: Vec<(String, String)>,
pub category: String,
pub description: String,
pub default_enabled: bool,
}Expand description
A single built-in provider entry, deserialized from data/catalog/providers.toml.
All fields except id, display_name, api, env_key, auth_method,
category, description are optional with sensible defaults.
Fields§
§id: StringPrimary provider name (e.g. “openai”)
display_name: StringDisplay name (e.g. “OpenAI”)
aliases: Vec<String>Alternative names that resolve to this provider
api: StringAPI type used by this provider
env_key: StringEnvironment variable that may hold the API key
extra_env_keys: Vec<String>Additional environment variables to check
base_url: StringDefault base URL for the API (empty = computed at runtime)
auth_method: AuthMethodHow to pass the API key
extra_headers: Vec<(String, String)>Extra HTTP headers required by this provider
category: StringProvider category for UI grouping
description: StringShort human-readable description
default_enabled: boolWhether this provider is enabled by default
Implementations§
Source§impl BuiltinProviderEntry
impl BuiltinProviderEntry
Sourcepub fn all_env_keys(&self) -> impl Iterator<Item = &str>
pub fn all_env_keys(&self) -> impl Iterator<Item = &str>
Get all environment variable names for this provider (primary + extras).
Sourcepub fn is_openai_compatible(&self) -> bool
pub fn is_openai_compatible(&self) -> bool
Check if this is an OpenAI-compatible provider.
Trait Implementations§
Source§impl Clone for BuiltinProviderEntry
impl Clone for BuiltinProviderEntry
Source§fn clone(&self) -> BuiltinProviderEntry
fn clone(&self) -> BuiltinProviderEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more