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.

Diagram

uses

returns

Agent

Tool: set_tool_budget

Result

Signature

python
def set_tool_budget(tool_name: str, max_tokens: int, protected: bool) -> None

Parameters

ParamField str

No description available.

ParamField int

No description available.

ParamField bool

No description available.

Uses

  • PerToolBudget

Source

View on GitHub

praisonaiagents/context/manager.py at line 721


Related Documentation