{
  "format": "agent-article-v0",
  "article_id": "GX-0012",
  "content_family": "GX",
  "public_kind": "ARTICLE_PRODUCT",
  "revision_id": "GX-0012-R20261029-01",
  "canonical_url": "/providers/gx-0012-gemini-api-json-schema-interactions-api",
  "page_type": "update_note",
  "claim_ids": [],
  "evidence_ids": [],
  "unknown_ids": [
    "GX-0012-UNKNOWN-01"
  ],
  "operational_object_ids": [],
  "provider": [
    "Google"
  ],
  "models": [
    "Structured Outputs and Interactions API"
  ],
  "plans": [],
  "surfaces": [
    "schema constrained generation"
  ],
  "regions": [],
  "current_status": "UNKNOWN",
  "observation_status": "UNOBSERVED",
  "freshness": "UNKNOWN",
  "last_verified": null,
  "supersedes": [],
  "superseded_by": [],
  "provenance": [],
  "article_sources": [],
  "research_sections": [
    {
      "heading": "概要",
      "text": "Gemini APIのStructured outputsは、モデル出力を機械処理しやすいJSONへ制約する機能である。現行Interactions APIでは、出力形式制御はトップレベルのresponse_formatに集約され、text形式でmime_type=application/jsonを指定し、schemaへJSON Schemaを与える。GeminiのStructured outputsが扱うJSON Schemaは仕様全体ではなくサブセットである。"
    },
    {
      "heading": "current version / availability",
      "text": "2026-10-18時点のGoogle AI for Developers公式文書では、Interactions APIのresponse_formatがJSON Schema準拠JSONを強制する出力形式として公開されている。モデル可用性はモデルごとに変動するため、記事では特定モデル名を永続的な対応表として固定せず、利用時にModels/APIリファレンスを再確認する。"
    },
    {
      "heading": "主要機能",
      "text": "- response_formatで出力形式を指定する。\n- text response formatのmime_typeにapplication/jsonを指定できる。\n- schemaにJSON Schemaを指定し、構造化JSON出力を要求できる。\n- Structured outputsはJSON Schemaのサブセットをサポートする。\n- Generate Content系からInteractions APIへ移行する場合、出力形式制御はトップレベルresponse_formatへ移る。"
    },
    {
      "heading": "failure / limit",
      "text": "構造化出力は、JSONの構文・schema適合性をアプリケーションの業務意味論まで保証する機構ではない。型や必須フィールドに適合していても、値の意味、外部システムとの整合、業務ルール、権限条件などは別途検証する必要がある。また、サポート対象はJSON Schema全体ではないため、未対応keywordを前提に設計しない。"
    },
    {
      "heading": "適用境界",
      "text": "適する用途は、後段プログラムが固定構造を要求する抽出、分類、フォーム生成、API入力候補生成などである。schema適合をそのまま事実性・正確性・実行安全性の保証として扱ってはならない。外部副作用を伴う処理では、schema validationとは別にsemantic validation、権限確認、readback等を置く。"
    },
    {
      "heading": "Unconfirmed",
      "text": "- JSON Schemaサブセットの対応範囲は更新され得るため、個々のkeywordの可否は実装時点の公式リファレンスで再確認する。\n- モデル別の対応状況・preview/stable状態は固定値として扱わない。\n- schema複雑性の実用上限を普遍的な固定閾値として断定しない。"
    }
  ],
  "human_url": "/providers/gx-0012-gemini-api-json-schema-interactions-api",
  "markdown_url": "/agent/article.md?path=%2Fproviders%2Fgx-0012-gemini-api-json-schema-interactions-api",
  "json_url": "/agent/article.json?path=%2Fproviders%2Fgx-0012-gemini-api-json-schema-interactions-api"
}