pub struct ProvidersConfig {
pub default_provider: String,
pub planner: Option<String>,
pub coach: Option<String>,
pub player: Option<String>,
pub anthropic: HashMap<String, AnthropicConfig>,
pub openai: HashMap<String, OpenAIConfig>,
pub databricks: HashMap<String, DatabricksConfig>,
pub embedded: HashMap<String, EmbeddedConfig>,
pub openai_compatible: HashMap<String, OpenAIConfig>,
}Expand description
Provider configuration with named configs per provider type
Fields§
§default_provider: StringDefault provider in format “<provider_type>.<config_name>”
planner: Option<String>Provider for planner mode (optional, falls back to default_provider)
coach: Option<String>Provider for coach in autonomous mode (optional, falls back to default_provider)
player: Option<String>Provider for player in autonomous mode (optional, falls back to default_provider)
anthropic: HashMap<String, AnthropicConfig>Named Anthropic provider configs
openai: HashMap<String, OpenAIConfig>Named OpenAI provider configs
databricks: HashMap<String, DatabricksConfig>Named Databricks provider configs
embedded: HashMap<String, EmbeddedConfig>Named embedded provider configs
openai_compatible: HashMap<String, OpenAIConfig>Multiple named OpenAI-compatible providers (e.g., openrouter, groq, etc.)
Trait Implementations§
Source§impl Clone for ProvidersConfig
impl Clone for ProvidersConfig
Source§fn clone(&self) -> ProvidersConfig
fn clone(&self) -> ProvidersConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProvidersConfig
impl Debug for ProvidersConfig
Source§impl<'de> Deserialize<'de> for ProvidersConfig
impl<'de> Deserialize<'de> for ProvidersConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProvidersConfig
impl RefUnwindSafe for ProvidersConfig
impl Send for ProvidersConfig
impl Sync for ProvidersConfig
impl Unpin for ProvidersConfig
impl UnwindSafe for ProvidersConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more