Budget Allocation • AI Agent SDK
BudgetAllocation: Token budget allocation across segments.
BudgetAllocation
Defined in the models module.
AI Agent
Token budget allocation across segments.
Specifies maximum tokens allowed per segment.
Properties
ResponseField
intNo description available.
ResponseField
intNo description available.
ResponseField
intNo description available.
ResponseField
intNo description available.
ResponseField
intNo description available.
ResponseField
intNo description available.
ResponseField
intNo description available.
ResponseField
intNo description available.
ResponseField
intNo description available.
ResponseField
intNo description available.
Methods
usable()
Usable tokens after output reserve.
fixed_total()Total of fixed segment budgets.
history_budget()Computed history budget (remainder after fixed segments).
get_segment_budget()Get budget for a segment.
Internal & Generic Methods
- to_dict: Convert to dictionary.
Source
View on GitHubpraisonaiagents/context/models.py at line 95