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.
ToolCallLimitExceededError(
self,
thread_count: int,
run_count: int,
thread_limit: int | None,
run_limit: int | None,
tool_name: str | None = None
)| Name | Type | Description |
|---|---|---|
thread_count* | int | Current thread tool call count. |
run_count* | int | Current run tool call count. |
thread_limit* | int | None | Thread tool call limit (if set). |
run_limit* | int | None | Run tool call limit (if set). |
tool_name | str | None | Default: NoneTool name being limited (if specific tool), or None for all tools. |