Get Tool Budget • AI Agent SDK
get_tool_budget: Get token budget for a specific tool.
get_tool_budget
Method
</div>
This is a method of the ContextManager class in the manager module.
Get token budget for a specific tool.
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
agent["Agent"] -- "uses" --> tool["Tool: get_tool_budget"]
tool -- "returns" --> result["Result"]
style tool fill:#189AB4,color:#fff
style agent fill:#8B0000,color:#fff
style result fill:#8B0000,color:#fffSignature
def get_tool_budget(tool_name: str) -> intParameters
ParamField
strNo description available.
Returns
ResponseField
intThe result of the operation.
Used By
Source
View on GitHubpraisonaiagents/context/manager.py at line 715