2025-05-13 16:52:52 -07:00
|
|
|
use serde::Deserialize;
|
2025-08-04 09:34:46 -07:00
|
|
|
use std::path::PathBuf;
|
2025-05-13 16:52:52 -07:00
|
|
|
|
2025-07-08 22:05:22 +03:00
|
|
|
use crate::config_types::ReasoningEffort;
|
|
|
|
|
use crate::config_types::ReasoningSummary;
|
2025-05-13 16:52:52 -07:00
|
|
|
use crate::protocol::AskForApproval;
|
|
|
|
|
|
|
|
|
|
/// Collection of common configuration options that a user can define as a unit
|
|
|
|
|
/// in `config.toml`.
|
|
|
|
|
#[derive(Debug, Clone, Default, PartialEq, Deserialize)]
|
|
|
|
|
pub struct ConfigProfile {
|
|
|
|
|
pub model: Option<String>,
|
|
|
|
|
/// The key in the `model_providers` map identifying the
|
|
|
|
|
/// [`ModelProviderInfo`] to use.
|
|
|
|
|
pub model_provider: Option<String>,
|
|
|
|
|
pub approval_policy: Option<AskForApproval>,
|
|
|
|
|
pub disable_response_storage: Option<bool>,
|
2025-07-08 22:05:22 +03:00
|
|
|
pub model_reasoning_effort: Option<ReasoningEffort>,
|
|
|
|
|
pub model_reasoning_summary: Option<ReasoningSummary>,
|
2025-07-11 13:30:11 -04:00
|
|
|
pub chatgpt_base_url: Option<String>,
|
2025-08-04 09:34:46 -07:00
|
|
|
pub experimental_instructions_file: Option<PathBuf>,
|
2025-05-13 16:52:52 -07:00
|
|
|
}
|