OpenAPI/ファンクションコーリング

用語・参照用語・参照実挙動未確認実挙動未観測鮮度未確認鮮度を確定できない
提供元・モデル・プラン・利用環境
OpenAI
記事ID
EA-160

要点

「OpenAPI 3.1.0はHTTP APIの機械可読なインターフェース記述であり、function callingはproviderのモデルがアプリケーションへ外部処理の呼出しを要求する実行境界である。OpenAPIをfunction toolへ写像することは可能な設計選択だが、版・operation・schema・認証・実行結果・side effect policyを別途固定し、同一仕様とは扱わない。」

現在の判断

確立済み [S1サポート]: OAS 3.1.0は、HTTP APIのためのプログラミング言語に依存しないインターフェース記述です。その目的は、ソースコード、追加のドキュメント、またはネットワーク検査を行うことなく、人間とコンピュータがサービスの機能を検出して理解できるようにすることです。

どこまで当てはまるか

OAS version and API revision; operationId/HTTP method/path; servers/base URL; request/response schema and serialization; security schemes and actual issuer/audience/scope; model/provider/API endpoint; function name/description/JSON Schema; strict/tool_choice setting; tool allowlist; argument/result validator; confirmation and side-effect policy; idempotency/rollback; rate/size/timeouts; audit and data residency.

詳しく理解する

対象範囲と前提

エンタープライズAIコア/相互運用性/実装/プロバイダーマッピング/ガバナンス/セキュリティ

検討ポイント

What is established by OpenAPI 3.1 for HTTP API description, what is established by the current OpenAI function-calling documentation for model-to-application tool requests, and where is the interoperability claim only an inference?

根拠資料の対応表

[S1] SOURCE_CLASS: official_spec | EXACT_TITLE: OpenAPI Specification v3.1.0 | AUTHOR_ORG: OpenAPI Initiative / Linux Foundation | CANONICAL_URL: https://spec.openapis.org/oas/v3.1.0.html | PUBLICATION_UPDATE_ACCESS: v3.1.0 page; accessed 2026-09-14 00:10 JST | VERSION_RELEASE_TAG: v3.1.0; page lists newer versions including v3.2.1, so this is a pinned baseline | SUPPORTING_LOCATOR: metadata lines 6-38; What is OAS lines 41-43; Path/Operation and security examples in the recorded web capture | EVIDENCE_LABEL: 仕様確認済み | RELATION: support for API-description semantics; context for version drift. [S2] SOURCE_CLASS: official_provider_docs | EXACT_TITLE: Function calling | AUTHOR_ORG: OpenAI | CANONICAL_URL: https://developers.openai.com/api/docs/guides/function-calling | PUBLICATION_UPDATE_ACCESS: current docs accessed 2026-09-14 00:10 JST; original platform URL redirects here | VERSION_RELEASE_TAG: current OpenAI API documentation; page-specific API/model availability, no immutable API revision exposed in capture | SUPPORTING_LOCATOR: lines 838-854 for function/tool purpose and JSON-schema-defined function tools; lines 3554-3559 for tool_choice modes; line 3592 for non-strict default note | EVIDENCE_LABEL: 仕様確認済み + 製品情報は要再確認 | RELATION: support for provider-specific function-calling behavior; limit for cross-provider generalization. [S3] SOURCE_CLASS: official_spec | EXACT_TITLE: OpenAPI Specification v3.2.1 listing/current-version metadata | AUTHOR_ORG: OpenAPI Initiative / Linux Foundation | CANONICAL_URL: https://spec.openapis.org/oas/latest.html | PUBLICATION_UPDATE_ACCESS: current metadata accessed 2026-09-14 00:10 JST | VERSION_RELEASE_TAG: latest page is mutable; current-version pointer only | SUPPORTING_LOCATOR: v3.1.0 metadata lines 6-11 and 22-27 explicitly identify latest published version/current version list; use the fixed v3.1.0 URL for normative citation until the target version is separately re-read | EVIDENCE_LABEL: 製品情報は要再確認 + CONTEXT | RELATION: version-drift context; not a claim about function calling.

確認できていること

  • ESTABLISHED [S2 support]: OpenAI's current documentation defines function calling/tool calling as a way for its models to interface with external systems and application-provided data/actions. Function tools are defined by JSON Schema; the application registers/handles the function and action request.

  • 確定済み [S2サポート]: プロバイダーのページには、auto、required、特定の関数を強制するforced、および許可されたツールを含むtool-choice(ツール選択)の制御機能が記載されています。また、関連するパスでstrictをfalseに明示的に設定しない限り、Chat Completionsはデフォルトで非厳密な動作(non-strict)のままとなることも記録されています。

  • INFERENCE [S1+S2]: OpenAPI can be an input or mapping source for an HTTP tool catalog, but OAS is an API description while function calling is a model/provider runtime contract. They are not interchangeable and the mapping requires operation selection, schema adaptation, auth, result handling, and policy.

よくある失敗・反証

  • OAS describes interface structure but does not grant credentials, prove endpoint availability, authorize side effects, guarantee semantic correctness, or define a model's tool-selection behavior. OpenAI's page is provider-specific and volatile; its tool-choice/strict semantics cannot be generalized to every model or API. JSON Schema validation does not prove business invariants, safe arguments, idempotency, or human approval. No provider-crossing mapping benchmark was adopted.

実務での使い方

  • エビデンスに基づくデスクリサーチのみ。APIエンドポイント、モデル呼び出し、関数呼び出し、認証情報、または副作用を伴う実行は一切行っていません。

  • No schema-to-tool transpilation, invalid-argument, tool-choice, cross-provider, latency, or business-outcome evaluation was run.

  • OAS security objects are declarations, not proof of a configured authorization server. Tool schemas and descriptions can expose sensitive capability metadata. Validate model arguments and returned data outside the model; log model/provider/version, selected operation, arguments hash/redaction, authorization decision, execution result, retries, and human approval. Cost/operability need model tokens plus downstream call, retry, timeout, and human-review accounting; not measured.

まだ確認できていないこと

  • current OAS latest normative version; provider-neutral function-calling semantics; schema dialect compatibility; tool-result contract; model selection/error behavior; API auth/audience mapping; cross-provider conformance; prompt-injection/tool-description attacks; cost and production failure rates.

  • 外部根拠の再確認日が正式な本文・公開管理情報で確定していないため、現行性は未確認のまま保持する。確認日を推測して補わない。

根拠資料

この根拠欄には、主張に対応づけて登録された外部出典がありません。本文中の引用・参考資料がある場合は、適用条件や未確認事項とあわせて確認してください。

このページから探す

種類

主題

やりたいこと

読み終えたら、次の判断へ

この記事で確かめた条件を、関連する用語・道具・手段・運用知識に接続して確認できます。実装や更新の判断には、各記事の確認時点・根拠・未確認事項を引き継いでください。

最初の知見から実務判断まで、3つの読み方を見る