Resolved Max Tool Calls • AI Agent SDK

resolved_max_tool_calls: Return the configured tool-call budget.

resolved_max_tool_calls

Method

</div>

This is a method of the ExecutionConfig class in the feature_configs module.

Return the configured tool-call budget.

LiteLLM tool loops count calls across model responses, not just calls in one parallel batch. Their counter starts fresh on durable resume, so an interrupted and resumed turn may exceed the configured budget in total. The native OpenAI tool loop does not enforce this budget. `max_steps` separately bounds loop iterations rather than tool calls, since one model response can request multiple tools.

Diagram

uses

returns

Agent

Tool: resolved_max_tool_calls

Result

Signature

python
def resolved_max_tool_calls() -> int

Returns

ResponseField int

The result of the operation.

Source

View on GitHub

praisonaiagents/config/feature_configs.py at line 1074


Related Documentation