Claude Developer Platform の構造化出力
構造化出力により、応答が JSON スキーマおよびツール定義と一致することを保証。
最新情報:Claude Haiku 4.5で利用可能になりました。Claude Developer Platform(Claude Developer Platform)上でネイティブおよび Microsoft Foundry でサポートされています。 (2025年12月4日)
Claude Developer Platform は、Claude Sonnet 4.5 と Opus 4.1 の構造化出力をサポートするようになりました。この機能は公開ベータ版として利用可能で、API レスポンスが常に指定された JSON スキーマまたはツール定義と一致するようにします。
構造化された出力により Claude の応答が定義されたスキーマに準拠していることが保証され、開発者はスキーマ関連の解析エラーやツール呼び出しの失敗を排除できます。画像からのデータ抽出、エージェントのオーケストレーション、外部APIとの統合など、あらゆる場面で有効です。
本番環境でアプリケーションやエージェントを構築する開発者にとって、データ形式の単一エラーが連鎖的な障害を引き起こす可能性があります。構造化出力は、モデルの性能に影響を与えることなく、定義した構造と完全に一致する応答を保証することでこの問題を解決します。これにより、正確性が極めて重要なアプリケーションやエージェントにおいて、Claude は信頼性の高い選択肢となります。具体的には下記の例が挙げられます。
構造化出力は、JSON またはツールの 2 つの方法で利用できます。JSON と併用する場合、API リクエスト内にスキーマ定義を提供していただく必要があります。ツールに関しては、ツール仕様の定義を提供してくだだくと、Claude の出力は自動的にこれらのツール定義に準拠します。
その結果、信頼性の高い出力が得られ、再試行回数が削減され、フェイルオーバーロジックや複雑なエラー処理が不要となる簡素化されたコードベースが実現します。
OpenRouter は 400 万以上の開発者に、単一の統合ンターフェイスを通じて主要 AI モデルすべてへのアクセスを提供しています。
「構造化出力はエージェント AI スタックにおいて非常に価値ある構成要素になりました。エージェントは常に構造化データを取り込み生成するため、Anthropic の構造化出力は開発者にとって真の課題を解決します。エージェントワークフローは常に安定して実行され、チームはツール呼び出しのデバッグを行うよりもお客様に集中できます」と OpenRouter の COO である Chris Clark 氏は述べています。
構造化出力はパブリックベータ版として、Claude Developer Platform において Sonnet 4.5 および Opus 4.1 で利用できるようになりました。Haiku 4.5 のサポートもまもなく開始される予定です。サポートされる JSON スキーマタイプ、実装例、ベストプラクティスの詳細はドキュメントをご覧ください。
関連投稿
Claudeを活用した構築チーム向けの製品ニュースやベストプラクティスに関するその他の情報を提供します。
開発者向けニュースレターを入手
製品の最新情報、操作方法、コミュニティスポットライトなどを掲載しています。毎月受信トレイにお届けします。
Hi Claude! Could you help me develop a unique voice for an audience? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
Hi Claude! Could you improve my writing style? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
Hi Claude! Could you brainstorm creative ideas? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
Hi Claude! Could you explain a complex topic simply? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
Hi Claude! Could you help me make sense of these ideas? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
Hi Claude! Could you prepare for an exam or interview? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
Hi Claude! Could you explain a programming concept? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
Hi Claude! Could you look over my code and give me tips? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
Hi Claude! Could you vibe code with me? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
This is another test
Hi Claude! Could you write grant proposals? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to — like Google Drive, web search, etc. — if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can - an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
this is a test