pub struct AgentConfig {Show 13 fields
pub provider: String,
pub default_model: String,
pub theme: String,
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,
}
Expand description
Agent-wide configuration
Fields§
§provider: String
AI provider for single agent mode (gemini, openai, anthropic, openrouter, xai)
default_model: String
Default model to use
theme: String
UI theme identifier controlling ANSI styling
ui_surface: UiSurfacePreference
Preferred rendering surface for the interactive chat UI (auto, alternate, inline)
max_conversation_turns: usize
Maximum number of conversation turns before auto-termination
reasoning_effort: ReasoningEffortLevel
Reasoning effort level for models that support it (low, medium, high) Applies to: Claude, GPT-5, Gemini, Qwen3, DeepSeek with reasoning capability
enable_self_review: bool
Enable an extra self-review pass to refine final responses
max_review_passes: usize
Maximum number of self-review passes
refine_prompts_enabled: bool
Enable prompt refinement pass before sending to LLM
refine_prompts_max_passes: usize
Max refinement passes for prompt writing
refine_prompts_model: String
Optional model override for the refiner (empty = auto pick efficient sibling)
onboarding: AgentOnboardingConfig
Session onboarding and welcome message configuration
project_doc_max_bytes: usize
Maximum bytes of AGENTS.md content to load from project hierarchy
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>,
Auto 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more