Skip to content

fix: #3286 send realtime output for unknown tool calls#3287

Merged
seratch merged 1 commit intoopenai:mainfrom
Aphroq:fix/realtime-unknown-tool-output
May 8, 2026
Merged

fix: #3286 send realtime output for unknown tool calls#3287
seratch merged 1 commit intoopenai:mainfrom
Aphroq:fix/realtime-unknown-tool-output

Conversation

@Aphroq
Copy link
Copy Markdown
Contributor

@Aphroq Aphroq commented May 8, 2026

Summary

Send a model-visible error tool output when realtime receives a tool call whose name is not available on the current agent.

Known function tools, rejected tools, and handoffs already complete model-visible tool calls with RealtimeModelSendToolOutput. This change makes the unknown-tool branch do the same with start_response=True, while preserving the existing local RealtimeError event for application observers.

Test plan

  • uv run pytest tests/realtime/test_session.py -k "unknown_tool_handling"
  • bash .agents/skills/code-change-verification/scripts/run.sh

Issue number

Closes #3286

Checks

  • I've added new tests (if relevant)
  • I've added/updated the relevant documentation
  • I've run make lint and make format
  • I've made sure tests pass

@Aphroq Aphroq changed the title Send realtime output for unknown tool calls fix: #3286 send realtime output for unknown tool calls May 8, 2026
@seratch seratch enabled auto-merge (squash) May 8, 2026 16:55
@seratch seratch merged commit e19ac4e into openai:main May 8, 2026
10 checks passed
@seratch seratch added this to the 0.17.x milestone May 8, 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 unknown tool calls do not send model-visible output

2 participants