Realtime: with async_tool_calls=True, an interruption mid-tool is answered with no pending marker for the call, and the model claims the action already happened
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 44/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- python
- 領域
- ai, backend-api-design
調査の方向性
Start by reading the RealtimeSession async tool call and interruption handling paths; the issue names no source files or tests. Reproduce with the linked stopbench realtime_run.py command using --async-tools true and inspect how an in-flight call is represented in conversation context. Done means the model can identify a still-running call without claiming its result, with tests covering interruption during execution.
索引モデルが issue の本文から書いたものです。
説明
Versions
- openai-agents 0.24.0,
RealtimeSession - gpt-realtime-2.1, text output
Summary
When the user interrupts while a function tool is running, the stop is answered before the tool has a result, and the model has nothing in its conversation saying the call is still pending. It then guesses, and its guess can be wrong.
Setup: a refund tool with a 400 ms backend commit. The stop is session.interrupt() then session.send_message("Wait, stop. Don't do the refund."). A local ledger records whether the refund committed.
interrupt()cancelled nothing in this text session. Every response in all 40 runs endedcompleted, and the tool always ran to completion.- With
async_tool_calls=True(the default), the stop gets its own response right away while the call has no output yet. In 15 of 15 stop runs the first reply said the refund was "already" in progress, sent or submitted before the model had a result. - When the stop came before the tool's HTTP request was sent, the reply ("I can't stop it at this point because the refund request has already been submitted.") was false when it was said. The ledger received the request 202 to 207 ms later.
- With
async_tool_calls=False, the stop waits for the tool, and the model answers from the real result. But the user hears nothing until the tool returns (6.2 to 6.5 s with a 6 s backend).
Expected
With async_tool_calls=True, a call that's still running should show in the model's context as pending (e.g. a placeholder function output, or a note that a tool call is in progress), so the model can say "it's still processing" and not guess. A way to cancel the running tool task on interrupt() would also help tools that can still be stopped.
Repro
https://github.com/chrislazar25/stopbench
.venv-realtime/bin/python realtime_run.py --async-tools true --runs 5 --moments before_send in_flight --out runs/mine/realtime.jsonl
Data: runs/realtime-gpt-realtime-2.1.jsonl (e.g. refund 5c7a420531e0, before send: "I can't stop it at this point—the refund request has already been sent and is still processing."). README section "Results: OpenAI Agents SDK 0.24.0 realtime".
- 主要言語
- Python
- スター
- 30.2k
- フォーク
- 4.9k
- 平均マージ
- 12時間 50分
- マージ済み PR(30日)
- 162
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
openai/openai-agents-python のほかの issue
-
fix(typing): explicitly specialize ToolContext[Any] in ToolFunctionWithToolContext再び着手できるかも @AbarnaaSree が 9 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
openai/openai-agents-python#5387 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
function_tool on a callable object uses an inherited or generated class docstring as the tool description対応中かも @Narendra02053 が今日担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
openai/openai-agents-python#5443 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 70/100
openai/openai-agents-python#5441 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 53/100
openai/openai-agents-python#5413 · コメント 6 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
openai/openai-agents-python#5412 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
openai/openai-agents-python の issue をすべて見る
似ている issue
-
fix(ui): serve bundled fonts from the gateway対応中かも @dkritarth が今日担当しました。 オープンagent: in-progress agent: ready P3 type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
dkritarth/scopewatch#336 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bob
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
khuisman/mcp-gee-sweet#1267 ·
メンテナーはふだん 1 日以内に返信
-
bug confirmed issue
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
open-webui/open-webui#33285 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
tv-list
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
Gathin23/cleanyourtv#2337 ·
メンテナーはふだん 1 日以内に返信
-
bug P2
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信