thinking • Rust AI Agent SDK

Thinking Budget Module for PraisonAI Rust SDK.

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

ignore
use praisonai::thinking::{ThinkingBudget, BudgetLevel, ThinkingTracker};

// Create a thinking budget
let budget = ThinkingBudget::high();

// Or with custom settings
let budget = ThinkingBudget::new()
.max_tokens(16000)
.adaptive(true)
.build();

// Track usage
let mut tracker = ThinkingTracker::new();
let usage = tracker.start_session(8000, None, 0.5);

Import

rust
use praisonai::thinking::*;

Classes


Related Documentation