Set Tool Budget • AI Agent SDK
set_tool_budget: Set token budget for a specific tool.
set_tool_budget
Method
</div>
This is a method of the ContextManager class in the manager module.
Set token budget for a specific tool.
Signature
def set_tool_budget(tool_name: str, max_tokens: int, protected: bool) -> NoneParameters
ParamField
strNo description available.
ParamField
intNo description available.
ParamField
boolNo description available.
Uses
PerToolBudget
Source
View on GitHubpraisonaiagents/context/manager.py at line 721