AI 開発

OpenAI DevDay 2026 後、Structured Output と Tool Calling は何が変わった?2026 Decisions と text.format の使い分け

約 13 分

DevDay は「新しい JSON Schema 製品」を出していない。recap の主線は Decisions と Computer use 付き Agents API。2026-10-22 の GA 後、公式ははっきり書く:有界な答えは Decisions、スキーマに従うオブジェクトは Responses の text.format、副作用は function calling。本篇はその三つの JSON 契約だけ。workflow 層の再掲でも、keynote 前の予測稿の改稿でもない。

読む前の早見

能力 DevDay 後の公式の場所 返るもの
Structured Output Responses:text.format type=json_schema。新 API ではない スキーマ準拠オブジェクト(抽出・UI)
Tool Calling Responses:フラット tools[]。output は function_call name + arguments 文字列。宿主が実行
有界な決定 POST /v1/decisions。10/22 GA。input_json 可 answers:predicate / choice / score。ツールは実行しない
Agent ループ Decisions が経路 → Responses がツール → 宿主 state choice は facts。Call/Result は Responses
Programmatic Tool Calling GPT-5.6 から。DevDay セッションで言及。Structured Output の代替ではない ホストされた V8 が allowed_callers のツールを呼ぶ

事実は 2026-10-30 まで:DevDay recap、Decisions GA、Responses 移行 / Structured Outputs / function calling。A-1042、T-8841、resp_8k1a は架空。

変わったのは分岐であり「より良い JSON mode」ではない

keynote 前、多くの原稿は Structured Output・Tool Calling・Agent Workflow を一つの巨大 schema にしていた。2026 の公式は三つの仕事に分ける:

  • Structured Output は Responses のまま。Chat Completions の response_format は text.format へ。recap は当日の新製品として挙げていない。
  • Tool Calling はフラットな type/name/parameters。書き戻しは call_id の function_call_output。strict を省略すると正規化を試み、失敗時は strict: false。
  • 有界なルーティング は Decisions。GA で input_json、最大 400 問、function_call 履歴を証拠にできる。返るのは typed answers であり、独自の業務オブジェクトではない。

当日の発表は DevDay recap。層のつなぎは workflow 実測。フィールド移行は API 移行。

旧リクエスト vs text.format vs フラットツール vs Decisions

1. 経路・抽出・ツールを一つの Chat Completions に詰め込まない。 まだ見かけるが、DevDay 後の主経路ではない:

{
  "model": "gpt-4o",
  "messages": [
    {"role": "user", "content": "Extract order A-1042 as JSON."}
  ],
  "response_format": {
    "type": "json_schema",
    "json_schema": {
      "name": "order_extract",
      "strict": true,
      "schema": {
        "type": "object",
        "properties": {
          "order_id": { "type": "string" },
          "status": { "type": "string" }
        },
        "required": ["order_id", "status"],
        "additionalProperties": false
      }
    }
  },
  "tools": [{
    "type": "function",
    "function": {
      "name": "lookup_order",
      "parameters": { "type": "object" }
    }
  }]
}

2. スキーマ準拠オブジェクト:Responses + text.format。 公式:ツールは function calling。ユーザー/UI 向け構造は text.format。

{
  "model": "gpt-6-astra",
  "input": "Jane paid order A-1042.",
  "text": {
    "format": {
      "type": "json_schema",
      "name": "order_extract",
      "strict": true,
      "schema": {
        "type": "object",
        "properties": {
          "order_id": { "type": "string", "pattern": "^[A-Z]-\\d{4}$" },
          "status": { "type": "string", "enum": ["paid", "open"] }
        },
        "required": ["order_id", "status"],
        "additionalProperties": false
      }
    }
  }
}

3. 副作用:フラット tools。arguments を検証してから実行。 継続は previous_response_id。Decisions の answers 全体を prompt に stringify しない。

{
  "model": "gpt-6-luna",
  "previous_response_id": "resp_8k1a",
  "tools": [{
    "type": "function",
    "name": "lookup_order",
    "strict": true,
    "parameters": {
      "type": "object",
      "properties": {
        "order_id": { "type": "string", "pattern": "^[A-Z]-\\d{4}$" }
      },
      "required": ["order_id"],
      "additionalProperties": false
    }
  }],
  "input": [{
    "role": "user",
    "content": [{ "type": "input_text", "text": "Look up A-1042 if needed." }]
  }]
}

4. 分類/経路:Decisions + input_json。 data 内のキーはメッセージや画像取得にならない。答えの型は宣言した question type。

{
  "model": "gpt-6-luna",
  "input": [{
    "role": "user",
    "content": [
      { "type": "input_text", "text": "Route using the ticket and order." },
      {
        "type": "input_json",
        "data": {
          "ticket": { "body": "Please refund the duplicate charge." },
          "order": { "order_id": "A-1042", "charges": [49, 49] }
        }
      }
    ]
  }],
  "questions": [{
    "type": "choice",
    "name": "route",
    "instructions": "Pick the next host action. Do not call tools.",
    "choices": [
      { "value": "lookup", "description": "Call lookup_order" },
      { "value": "hold", "description": "Stop for a human" }
    ]
  }]
}

三経路:オブジェクト生成、ツール要求、有界答え

「JSON」を一つの製品名にすると API を誤る。戻り契約で選ぶ:

必要なもの 使う API 使わない
抽出フィールド / UI オブジェクト Responses text.format json_schema Decisions answers や json_object で schema のふり
DB 参照、返金、ファイル書き込み Responses function tools(strict + additionalProperties:false) Decisions に lookup を実行させる
部署ルーティング / 二重課金か Decisions choice または predicate 巨大 json_schema で next_action 散文
ツール結果の多段集計・フィルタ programmatic_tool_calling + allowed_callers 新しい Structured Output として扱う
ホストされた長時間ループ Agents API(Computer use 含む) Chat Completions messages を偽 session にする

Programmatic Tool Calling は隔離 V8 で JavaScript を走らせツールを協調させる。クライアント所有ツールはアプリが実行する。制御フローであり「業務 schema に必ず従う出力」ではない。

旧 Chat Completions から三経路へ

架空の注文で staging してから本番チケットへ:

  1. 三つの出力を列挙。オブジェクト / ツール引数 / 有界 enum。それぞれ schema か choices。
  2. オブジェクトは text.format。Responses の response_format を削除。
  3. ツール定義をフラットに。additionalProperties:false と required。非 strict なら明示的に false。
  4. 経路は Decisions。証拠は input_json。choice を facts に書き、Responses のツール要求を送る。
  5. 書き戻しは call_id。旧 role:tool メッセージは使わない。

Agents ホスト経路では Call/Result が session イベントになる。「Decisions はツールを実行しない」は変わらない。

schema・arguments・answers を広げる

「モデルが悪い JSON を出した」の多くは三経路を一リクエストに混ぜた結果であり、Luna がフィールドを埋められないわけではない。

  • arguments と text.format 結果は 整形。ツール parameters と抽出 schema は Schema 検証。
  • 移行前後は JSON Diff:残った response_format、入れ子の function ラッパ。
  • Decisions answers の name=route は JSONPath。注文オブジェクトと取り違えない。
  • 五セグメントのフィールドは Agent JSON state。
  • JSONSort はローカル。本番チケットや鍵はアップロードしない。

三つの JSON 契約がそれぞれ Schema を通って初めて移行完了。「全部 JSON に見える」では足りない。

よくある誤り

  • DevDay が新しい Structured Outputs API を出したと思う。recap に無い。Responses に残る。
  • Decisions で注文オブジェクトを生成する。answers は probability / choice / score のみ。
  • Responses に response_format を送り続ける。移行ガイドは text.format。
  • function.function の二層を残す。Responses は内部タグ付きフラット。
  • strict を省略して常に厳密だと仮定。非互換 schema は strict:false に落ちる。
  • Programmatic Tool Calling を schema の門にする。呼び出し協調。業務オブジェクトは text.format か宿主検証。

FAQ

json_object モードはまだ使える?

妥当な JSON は出るが、あなたの schema は保証しない。使えるなら text.format の json_schema。

input_json は Structured Output の代替?

いいえ。証拠。答えの形は question type のまま。

Chat Completions の function ラッパは今すぐ削除?

Completions に残る間は外層を保てる。Responses に切ったらフラット定義と call_id 書き戻し。

workflow / state の記事との違いは?

あちらはループの配線と宿主 state。本篇は各 JSON 契約がどの公式 API に属するかだけ。

Programmatic Tool Calling は DevDay 新製品?

GPT-5.6 のツールガイド。DevDay の「Stop Overpaying」で言及。9/29 の Structured Output 製品として書かない。

結論

DevDay 2026 後、Structured Output と Tool Calling は一つの巨大 schema に統合されていない。オブジェクトは text.format、副作用はフラット function、有界選択は Decisions。10/22 GA は経路を固めただけで、Decisions に業務 JSON を出させない。

先に三つの契約を描き、それからフィールド名を変える。モデルは JSON を埋めるだけ。実行と次ホップは宿主。

関連記事

更新: 初出