Skip to content

fix: send realtime tool failure outputs#3393

Closed
he-yufeng wants to merge 1 commit into
openai:mainfrom
he-yufeng:fix/realtime-tool-failure-output
Closed

fix: send realtime tool failure outputs#3393
he-yufeng wants to merge 1 commit into
openai:mainfrom
he-yufeng:fix/realtime-tool-failure-output

Conversation

@he-yufeng
Copy link
Copy Markdown

Summary

  • send a model-visible tool output when a known Realtime function tool raises
  • do the same for handoff invocation failures before preserving the existing exception path
  • update timeout, generic tool exception, async task, and handoff failure tests

Fixes #3356.

Tests

  • uv run pytest tests\realtime\test_session.py -q --basetemp .tmp\pytest -p no:cacheprovider
  • uv run ruff check src\agents\realtime\session.py tests\realtime\test_session.py
  • uv run ruff format --check src\agents\realtime\session.py tests\realtime\test_session.py
  • python -m py_compile src\agents\realtime\session.py tests\realtime\test_session.py
  • git diff --check

@he-yufeng
Copy link
Copy Markdown
Author

Closing this older branch in favor of #3530, which is rebased and covers the same #3356 failure mode plus the handoff branch. Keeping one current PR should make review clearer.

@he-yufeng he-yufeng closed this May 30, 2026
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.

Realtime known tool failures (exception/timeout) do not send model-visible output

2 participants