Skip to main content

thinking

Rust AI Agent SDK Thinking Budget Module for PraisonAI Rust SDK. Provides configurable thinking budgets for LLM reasoning:
  • Token budgets for extended thinking
  • Time budgets for reasoning
  • Adaptive budget allocation
  • Budget tracking and reporting

Example

Import

Classes

ThinkingBudget

Budget constraints for extended thinking. Controls how much thinking/reasoning the LLM can do before producing a response.

ThinkingBudgetBuilder

Builder for ThinkingBudget.

ThinkingConfig

Configuration for thinking behavior.

ThinkingUsage

Usage statistics for a single thinking session.

ThinkingTracker

Tracks thinking usage across multiple sessions. Provides aggregate statistics and reporting.

BudgetLevel

Predefined budget levels for thinking.

Rust Thinking

Rust Reasoning