Skip to main content

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

fn enabled() -> Self
Create a new config with thinking enabled.

with_level

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