pub struct AgentConfig {Show 20 fields
pub provider: String,
pub api_key_env: String,
pub default_model: String,
pub theme: String,
pub todo_planning_mode: bool,
pub ui_surface: UiSurfacePreference,
pub max_conversation_turns: usize,
pub reasoning_effort: ReasoningEffortLevel,
pub enable_self_review: bool,
pub max_review_passes: usize,
pub refine_prompts_enabled: bool,
pub refine_prompts_max_passes: usize,
pub refine_prompts_model: String,
pub onboarding: AgentOnboardingConfig,
pub project_doc_max_bytes: usize,
pub instruction_max_bytes: usize,
pub instruction_files: Vec<String>,
pub custom_prompts: AgentCustomPromptsConfig,
pub custom_api_keys: BTreeMap<String, String>,
pub checkpointing: AgentCheckpointingConfig,
}Expand description
Agent-wide configuration
Fields§
§provider: StringAI provider for single agent mode (gemini, openai, anthropic, openrouter, xai, zai)
api_key_env: StringEnvironment variable that stores the API key for the active provider
default_model: StringDefault model to use
theme: StringUI theme identifier controlling ANSI styling
todo_planning_mode: boolEnable TODO planning workflow integrations (update_plan tool, onboarding hints)
ui_surface: UiSurfacePreferencePreferred rendering surface for the interactive chat UI (auto, alternate, inline)
max_conversation_turns: usizeMaximum number of conversation turns before auto-termination
reasoning_effort: ReasoningEffortLevelReasoning effort level for models that support it (low, medium, high) Applies to: Claude, GPT-5, Gemini, Qwen3, DeepSeek with reasoning capability
enable_self_review: boolEnable an extra self-review pass to refine final responses
max_review_passes: usizeMaximum number of self-review passes
refine_prompts_enabled: boolEnable prompt refinement pass before sending to LLM
refine_prompts_max_passes: usizeMax refinement passes for prompt writing
refine_prompts_model: StringOptional model override for the refiner (empty = auto pick efficient sibling)
onboarding: AgentOnboardingConfigSession onboarding and welcome message configuration
project_doc_max_bytes: usizeMaximum bytes of AGENTS.md content to load from project hierarchy
instruction_max_bytes: usizeMaximum bytes of instruction content to load from AGENTS.md hierarchy
instruction_files: Vec<String>Additional instruction files or globs to merge into the hierarchy
custom_prompts: AgentCustomPromptsConfigCustom prompt configuration for slash command shortcuts
custom_api_keys: BTreeMap<String, String>Provider-specific API keys captured from interactive configuration flows
checkpointing: AgentCheckpointingConfigCheckpointing configuration for automatic turn snapshots
Trait Implementations§
Source§impl Clone for AgentConfig
impl Clone for AgentConfig
Source§fn clone(&self) -> AgentConfig
fn clone(&self) -> AgentConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AgentConfig
impl Debug for AgentConfig
Source§impl Default for AgentConfig
impl Default for AgentConfig
Source§impl<'de> Deserialize<'de> for AgentConfig
impl<'de> Deserialize<'de> for AgentConfig
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>,
Source§impl JsonSchema for AgentConfig
impl JsonSchema for AgentConfig
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more