Build the default message returned to the model when a tool times out.
(*, tool_name: str, timeout_seconds: float)
| 1625 | |
| 1626 | |
| 1627 | def default_tool_timeout_error_message(*, tool_name: str, timeout_seconds: float) -> str: |
| 1628 | """Build the default message returned to the model when a tool times out.""" |
| 1629 | return f"Tool '{tool_name}' timed out after {timeout_seconds:g} seconds." |
| 1630 | |
| 1631 | |
| 1632 | def set_function_tool_failure_error_function( |
no outgoing calls
no test coverage detected