pub struct AgentConfig {
pub system_prompt: Option<String>,
pub enable_thought: bool,
pub reasoning: Option<ReasoningConfig>,
pub language: Language,
pub execution: ExecutionConfig,
pub llm: LlmConfig,
pub tool: ToolConfig,
pub session: SessionConfig,
pub safety: SafetyConfig,
}Fields§
§system_prompt: Option<String>§enable_thought: boolControls whether to include the reasoning content in LLM responses.
Distinction from reasoning.enabled:
enable_thought: controls whether thereasoning_contentfield is forwarded to consumers (i.e., “show the thinking process”)reasoning.enabled: controls whether the model’s extended thinking / reasoning mode is enabled (i.e., “let the model think deeply”)
Both are usually kept in sync, but can be controlled independently. For example,
to enable deep thinking without showing the process, set enable_thought = false
and reasoning.enabled = true.
reasoning: Option<ReasoningConfig>Reasoning/thinking configuration that controls LLM reasoning behavior.
enabled: whether to enable extended thinking mode (equivalent to builder’senable_thinking)budget_tokens: thinking token budget capeffort: reasoning intensity/depth (semantics vary by provider)
language: Language§execution: ExecutionConfig§llm: LlmConfig§tool: ToolConfig§session: SessionConfig§safety: SafetyConfigImplementations§
Source§impl AgentConfig
impl AgentConfig
Sourcepub fn validate(&self) -> AgentResult<()>
pub fn validate(&self) -> AgentResult<()>
Validate the configuration, returning an error for invalid values.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentConfig
impl Debug for AgentConfig
Auto Trait Implementations§
impl Freeze for AgentConfig
impl RefUnwindSafe for AgentConfig
impl Send for AgentConfig
impl Sync for AgentConfig
impl Unpin for AgentConfig
impl UnsafeUnpin 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