Skip to main content

praisonaiagents.thinking

Core SDK Extended Thinking Budgets Module for PraisonAI Agents. Provides configurable thinking budgets for LLM reasoning:
  • Token budgets for extended thinking
  • Time budgets for reasoning
  • Adaptive budget allocation
  • Budget tracking and reporting
Zero Performance Impact:
  • All imports are lazy loaded via getattr
  • Budgets only applied when configured
  • No overhead when not in use
Usage: from praisonaiagents.thinking import ThinkingBudget, ThinkingConfig

Create a thinking budget

budget = ThinkingBudget( max_tokens=16000, max_time_seconds=60, adaptive=True )

Apply to agent

agent = Agent( instructions=”…”, thinking_budget=budget )

Overview

This module provides components for thinking.