<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nishioka38</author_name>
  <author_url>https://blog.hatena.ne.jp/nishioka38/</author_url>
  <blog_title>ELW株式会社 テックブログ</blog_title>
  <blog_url>https://techblog.elw.co.jp/</blog_url>
  <categories>
    <anon>バックエンド勉強会</anon>
    <anon>LLM</anon>
    <anon>AI</anon>
  </categories>
  <description>はじめに 以前の記事では、Function callingを使ってAIからの回答を定型化する方法を紹介しました。 Function callingは外部関数を呼び出す形式でJSON構造を取得できる便利な機能ですが、実はOpenAI APIにはresponse_format という、より直接的にJSON形式の回答を得られる方法が存在します。 本記事では、response_formatパラメータを用いた構造化出力の実装方法と、実際のKotlinコードでの活用例を紹介します。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftechblog.elw.co.jp%2Fentry%2F2026%2F03%2F06%2F131734&quot; title=&quot;OpenAI Chat Completions API におけるresponse_formatの活用 - ELW株式会社 テックブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-03-06 13:17:34</published>
  <title>OpenAI Chat Completions API におけるresponse_formatの活用</title>
  <type>rich</type>
  <url>https://techblog.elw.co.jp/entry/2026/03/06/131734</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
