Thinking Config • Rust AI Agent SDK

ThinkingConfig: Configuration for thinking behavior.

ThinkingConfig

Defined in the thinking module.

Rust AI Agent SDK

Configuration for thinking behavior.

Fields

NameTypeDescription
enabledboolWhether thinking is enabled
budgetThinkingBudgetBudget for thinking
show_thinkingboolWhether to show thinking in output
log_usageboolWhether to log thinking usage

Methods

enabled

rust
fn enabled() -> Self

Create a new config with thinking enabled.

with_level

rust
fn with_level(level: BudgetLevel) -> Self

Create a new config with a specific budget level.

Parameters:

NameType
levelBudgetLevel

Source

View on GitHub

praisonai/src/thinking/mod.rs at line 254


Related Documentation