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

python
def apply_budget(skills: List[SkillMetadata], budget: SkillPromptBudget) -> tuple[List[SkillMetadata], bool]

Parameters

ParamField List[SkillMetadata]

List of skill metadata to potentially include

ParamField SkillPromptBudget

Budget constraints to apply

Returns

ResponseField tuple[List[SkillMetadata], bool]

Tuple of (filtered_skills, was_truncated)

Used By

Source

View on GitHub

praisonaiagents/skills/budget.py at line 53