class ToolCallLimitExceededErrorThe tool call that dispatched this subagent, as
{ type: "toolCall", tool_call_id }, or undefined when the originating
tool call could not be recovered (e.g. it was not triggered from a tool).
The message sent to the model explaining why the action was rejected.
The name of the tool being called
Current run tool call count.
Run tool call limit (if set).
Current thread tool call count.
Thread tool call limit (if set).
Exception raised when tool call limits are exceeded.
This exception is raised when the configured exit behavior is 'error' and either the thread or run tool call limit has been exceeded.