> ## 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.

# History Budget • AI Agent SDK

> history_budget: Computed history budget (remainder after fixed segments).

# history\_budget

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**BudgetAllocation**](../classes/BudgetAllocation) class in the [**models**](../modules/models) module.

Computed history budget (remainder after fixed segments).

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def history_budget() -> int
```

### Returns

<ResponseField name="Returns" type="int">
  The result of the operation.
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/context/models.py#L130">
  `praisonaiagents/context/models.py` at line 130
</Card>
