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
| Name | Type | Description |
|---|---|---|
enabled | bool | Whether thinking is enabled |
budget | ThinkingBudget | Budget for thinking |
show_thinking | bool | Whether to show thinking in output |
log_usage | bool | Whether to log thinking usage |
Methods
enabled
fn enabled() -> SelfCreate a new config with thinking enabled.
with_level
fn with_level(level: BudgetLevel) -> SelfCreate a new config with a specific budget level.
Parameters:
| Name | Type |
|---|---|
level | BudgetLevel |
Source
View on GitHubpraisonai/src/thinking/mod.rs at line 254