Skip to main content

apply_budget

Function
This function is defined in the budget module.
Apply budget constraints to a list of skills.

Signature

Parameters

List[SkillMetadata]
required
List of skill metadata to potentially include
SkillPromptBudget
required
Budget constraints to apply

Returns

tuple[List[SkillMetadata], bool]
Tuple of (filtered_skills, was_truncated)

Used By

Source

View on GitHub

praisonaiagents/skills/budget.py at line 53