Truncate Tool Output • AI Agent SDK
truncate_tool_output: Truncate tool output according to its budget.
truncate_tool_output
Method
</div>
This is a method of the ContextManager class in the manager module.
Truncate tool output according to its budget.
Signature
def truncate_tool_output(tool_name: str, output: str, tool_call_id: str, run_id: str) -> strParameters
ParamField
strNo description available.
ParamField
strNo description available.
ParamField
strNo description available.
ParamField
strNo description available.
Returns
ResponseField
strThe result of the operation.
Uses
get_tool_budgetestimate_tokensget_tool_output_storestore.storestore.format_referencelogger.debug
Source
View on GitHubpraisonaiagents/context/manager.py at line 731