MCPcopy Create free account
hub / github.com/openai/openai-agents-python / ToolTimeoutError

Class ToolTimeoutError

src/agents/exceptions.py:109–118  ·  view source on GitHub ↗

Exception raised when a function tool invocation exceeds its timeout.

Source from the content-addressed store, hash-verified

107
108
109class ToolTimeoutError(AgentsException):
110 """Exception raised when a function tool invocation exceeds its timeout."""
111
112 tool_name: str
113 timeout_seconds: float
114
115 def __init__(self, tool_name: str, timeout_seconds: float):
116 self.tool_name = tool_name
117 self.timeout_seconds = timeout_seconds
118 super().__init__(f"Tool '{tool_name}' timed out after {timeout_seconds:g} seconds.")
119
120
121class InputGuardrailTripwireTriggered(AgentsException):

Callers 1

invoke_function_toolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected