> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Budget Allocation • AI Agent SDK

> BudgetAllocation: Token budget allocation across segments.

# BudgetAllocation

> Defined in the [**models**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/models.md) module.

AI Agent

Token budget allocation across segments.

Specifies maximum tokens allowed per segment.

## Properties

**model\_limit** `int`

No description available.

**output\_reserve** `int`

No description available.

**system\_prompt** `int`

No description available.

**rules** `int`

No description available.

**skills** `int`

No description available.

**memory** `int`

No description available.

**tools\_schema** `int`

No description available.

**history** `int`

No description available.

**tool\_outputs** `int`

No description available.

**buffer** `int`

No description available.

## Methods

> [card] [usable()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/BudgetAllocation-usable.md)
>
> Usable tokens after output reserve.

> [card] [fixed\_total()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/BudgetAllocation-fixed_total.md)
>
> Total of fixed segment budgets.

> [card] [history\_budget()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/BudgetAllocation-history_budget.md)
>
> Computed history budget (remainder after fixed segments).

> [card] [get\_segment\_budget()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/BudgetAllocation-get_segment_budget.md)
>
> Get budget for a segment.

> [accordion] Internal & Generic Methods
>
> * **to\_dict**: Convert to dictionary.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/context/models.py#L95)
>
> `praisonaiagents/context/models.py` at line 95


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.