Skip to content

fix: send realtime tool failure outputs#3393

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

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

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