Apply Budget • AI Agent SDK
apply_budget: Apply budget constraints to a list of skills.
apply_budget
Function
</div>
This function is defined in the budget module.
Apply budget constraints to a list of skills.
Signature
def apply_budget(skills: List[SkillMetadata], budget: SkillPromptBudget) -> tuple[List[SkillMetadata], bool]Parameters
ParamField
List[SkillMetadata]List of skill metadata to potentially include
ParamField
SkillPromptBudgetBudget constraints to apply
Returns
ResponseField
tuple[List[SkillMetadata], bool]Tuple of (filtered_skills, was_truncated)
Used By
Source
View on GitHubpraisonaiagents/skills/budget.py at line 53