pub struct Config {
pub providers: ProvidersConfig,
pub agent: AgentConfig,
pub computer_control: ComputerControlConfig,
pub webdriver: WebDriverConfig,
}Expand description
Main configuration structure
Fields§
§providers: ProvidersConfig§agent: AgentConfig§computer_control: ComputerControlConfig§webdriver: WebDriverConfigImplementations§
Source§impl Config
impl Config
pub fn load(config_path: Option<&str>) -> Result<Self>
Sourcepub fn parse_provider_reference(reference: &str) -> Result<(String, String)>
pub fn parse_provider_reference(reference: &str) -> Result<(String, String)>
Parse a provider reference into (provider_type, config_name)
pub fn save(&self, path: &str) -> Result<()>
pub fn load_with_overrides( config_path: Option<&str>, provider_override: Option<String>, model_override: Option<String>, ) -> Result<Self>
Sourcepub fn get_planner_provider(&self) -> &str
pub fn get_planner_provider(&self) -> &str
Get the provider reference for planner mode
Sourcepub fn get_coach_provider(&self) -> &str
pub fn get_coach_provider(&self) -> &str
Get the provider reference for coach mode in autonomous execution
Sourcepub fn get_player_provider(&self) -> &str
pub fn get_player_provider(&self) -> &str
Get the provider reference for player mode in autonomous execution
Sourcepub fn with_provider_override(&self, provider_ref: &str) -> Result<Self>
pub fn with_provider_override(&self, provider_ref: &str) -> Result<Self>
Create a copy of the config with a different default provider
Sourcepub fn for_planner(&self) -> Result<Self>
pub fn for_planner(&self) -> Result<Self>
Create a copy of the config for planner mode
Sourcepub fn for_coach(&self) -> Result<Self>
pub fn for_coach(&self) -> Result<Self>
Create a copy of the config for coach mode in autonomous execution
Sourcepub fn for_player(&self) -> Result<Self>
pub fn for_player(&self) -> Result<Self>
Create a copy of the config for player mode in autonomous execution
Sourcepub fn get_anthropic_config(&self, name: &str) -> Option<&AnthropicConfig>
pub fn get_anthropic_config(&self, name: &str) -> Option<&AnthropicConfig>
Get Anthropic config by name
Sourcepub fn get_openai_config(&self, name: &str) -> Option<&OpenAIConfig>
pub fn get_openai_config(&self, name: &str) -> Option<&OpenAIConfig>
Get OpenAI config by name
Sourcepub fn get_databricks_config(&self, name: &str) -> Option<&DatabricksConfig>
pub fn get_databricks_config(&self, name: &str) -> Option<&DatabricksConfig>
Get Databricks config by name
Sourcepub fn get_embedded_config(&self, name: &str) -> Option<&EmbeddedConfig>
pub fn get_embedded_config(&self, name: &str) -> Option<&EmbeddedConfig>
Get Embedded config by name
Sourcepub fn get_default_provider_config(&self) -> Result<ProviderConfigRef<'_>>
pub fn get_default_provider_config(&self) -> Result<ProviderConfigRef<'_>>
Get the current default provider’s config
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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 Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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