pub struct Config {
pub provider: Option<String>,
pub model: Option<String>,
pub api_key: Option<String>,
pub base_url: Option<String>,
pub architect_model: Option<String>,
pub actuator_model: Option<String>,
pub verifier_model: Option<String>,
pub speculator_model: Option<String>,
}Expand description
Main configuration struct.
All fields are optional. Documented aliases are accepted on load so that
older field names keep working (provider_type, default_provider,
default_model).
Fields§
§provider: Option<String>Provider id, e.g. openai, anthropic, gemini, ollama.
model: Option<String>Default chat/simple-chat model.
api_key: Option<String>API key for the configured provider. Optional; may also come from env.
base_url: Option<String>Optional base URL override for OpenAI-compatible / local endpoints.
architect_model: Option<String>Agent Architect-tier model override.
actuator_model: Option<String>Agent Actuator-tier model override.
verifier_model: Option<String>Agent Verifier-tier model override.
speculator_model: Option<String>Agent Speculator-tier model override.
Implementations§
Source§impl Config
impl Config
Sourcepub fn from_toml_str(content: &str) -> Result<Self>
pub fn from_toml_str(content: &str) -> Result<Self>
Parse a Config from a TOML string. A partial document is valid.
Sourcepub fn load_from_path(path: &Path) -> Result<Self>
pub fn load_from_path(path: &Path) -> Result<Self>
Load a Config from a file path. Returns Config::default() when the
file does not exist, so callers can always work with effective values.
Sourcepub fn to_toml_string(&self) -> Result<String>
pub fn to_toml_string(&self) -> Result<String>
Serialize this config to a TOML string.