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

Function default_tool_timeout_error_message

src/agents/tool.py:1627–1629  ·  view source on GitHub ↗

Build the default message returned to the model when a tool times out.

(*, tool_name: str, timeout_seconds: float)

Source from the content-addressed store, hash-verified

1625
1626
1627def 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
1632def set_function_tool_failure_error_function(

Callers 1

invoke_function_toolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected