Exception raised when a function tool invocation exceeds its timeout.
| 107 | |
| 108 | |
| 109 | class 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 | |
| 121 | class InputGuardrailTripwireTriggered(AgentsException): |
no outgoing calls
no test coverage detected