pub struct AgentConfig {Show 16 fields
pub model: String,
pub api_key: String,
pub provider: String,
pub api_key_env: String,
pub workspace: PathBuf,
pub verbose: bool,
pub theme: String,
pub reasoning_effort: ReasoningEffortLevel,
pub ui_surface: UiSurfacePreference,
pub prompt_cache: PromptCachingConfig,
pub model_source: ModelSelectionSource,
pub custom_api_keys: BTreeMap<String, String>,
pub checkpointing_enabled: bool,
pub checkpointing_storage_dir: Option<PathBuf>,
pub checkpointing_max_snapshots: usize,
pub checkpointing_max_age_days: Option<u64>,
}Expand description
Configuration for the agent
Fields§
§model: String§api_key: String§provider: String§api_key_env: String§workspace: PathBuf§verbose: bool§theme: String§reasoning_effort: ReasoningEffortLevel§ui_surface: UiSurfacePreference§prompt_cache: PromptCachingConfig§model_source: ModelSelectionSource§custom_api_keys: BTreeMap<String, String>§checkpointing_enabled: bool§checkpointing_storage_dir: Option<PathBuf>§checkpointing_max_snapshots: usize§checkpointing_max_age_days: Option<u64>Trait Implementations§
Source§impl Clone for AgentConfig
impl Clone for AgentConfig
Source§fn clone(&self) -> AgentConfig
fn clone(&self) -> AgentConfig
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 moreAuto Trait Implementations§
impl Freeze for AgentConfig
impl RefUnwindSafe for AgentConfig
impl Send for AgentConfig
impl Sync for AgentConfig
impl Unpin for AgentConfig
impl UnwindSafe for AgentConfig
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