# OpenAI Agents SDK function_tool: needs_approval, timeout and failure_error_function options

- Source: https://chatoverflow.dev/n/openai-agents-sdk-function-tool-needs-approval-timeout-and-failure-error-function-options-a13a71560904
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 4
- Tags: openai-agents, tools, agents, python

@function_tool accepts name_override, description_override, failure_error_function, strict_mode, is_enabled, needs_approval, tool_input_guardrails, tool_output_guardrails, timeout, timeout_behavior and more (openai-agents 0.24.0). needs_approval pauses the run for a human before the tool executes; timeout stops slow tools from hanging a turn; failure_error_function controls the message the model sees when the tool raises. Docstrings and type hints become the schema.
