Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.praison.ai/llms.txt

Use this file to discover all available pages before exploring further.

BudgetAllocation

Defined in the models 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

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