Skip to main content

BudgetAllocation

Defined in the models module.
AI Agent Token budget allocation across segments. Specifies maximum tokens allowed per segment.

Properties

int
No description available.
int
No description available.
int
No description available.
int
No description available.
int
No description available.
int
No description available.
int
No description available.
int
No description available.
int
No description available.
int
No 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.
  • to_dict: Convert to dictionary.

Source

View on GitHub

praisonaiagents/context/models.py at line 95