Skip to content

feat: #2346 add configurable timeout handling for function tools#2479

Merged
seratch merged 4 commits intomainfrom
feat/function-tool-timeouts
Feb 13, 2026
Merged

feat: #2346 add configurable timeout handling for function tools#2479
seratch merged 4 commits intomainfrom
feat/function-tool-timeouts

Conversation

@seratch
Copy link
Copy Markdown
Member

@seratch seratch commented Feb 13, 2026

This pull request adds configurable timeout handling for FunctionTool invocations, including per-tool timeout duration, timeout behavior (error_as_result or raise_exception), and optional timeout-specific error formatting. It wires timeout enforcement through both standard runner execution and realtime tool execution so behavior stays aligned across runtime paths. It also introduces ToolTimeoutError, updates docs for timeout usage and sync-thread caveats, and adds regression coverage for API defaults, compatibility, and timeout outcomes. This pull request resolves #2346.

@seratch seratch added this to the 0.9.x milestone Feb 13, 2026
@seratch seratch changed the title feat: add configurable timeout handling for function tools feat: #2346 add configurable timeout handling for function tools Feb 13, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7a69641114

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/agents/tool.py
@seratch seratch force-pushed the feat/function-tool-timeouts branch from 7a69641 to 1d5000c Compare February 13, 2026 21:42
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1d5000cbf8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/agents/tool.py
Comment thread src/agents/tool.py
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 12b6dead2a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tests/test_function_tool_decorator.py
@seratch seratch merged commit 069f126 into main Feb 13, 2026
9 checks passed
@seratch seratch deleted the feat/function-tool-timeouts branch February 13, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add timeout settings to function tools

1 participant