<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>swx-kondo</author_name>
  <author_url>https://blog.hatena.ne.jp/swx-kondo/</author_url>
  <blog_title>サーバーワークスエンジニアブログ</blog_title>
  <blog_url>https://blog.serverworks.co.jp/</blog_url>
  <categories>
    <anon>OpenAI</anon>
    <anon>Python</anon>
  </categories>
  <description>GPT-4 との対話を通して EC2 インスタンスを起動する様子 はじめに Function Calling とは 実装 ライブラリのインポートと openai クライアントの定義 対話を行う chat 関数 1. Chat completion API に渡す引数を作成する 2. ユーザーの初回の投稿を送信する 3. tool_calls に値が設定されるまで（API に渡す引数が確定するまで）ユーザーと対話する 4. tool_calls が設定されたら、ユーザーに確認を求める 5. ユーザーの了承後、EC2 インスタンスを起動する Chat Completion API を実行する関数の…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.serverworks.co.jp%2Fopenai-function-calling&quot; title=&quot;Chat Completion API の Function Calling を使用して対話で EC2 インスタンスを起動する - サーバーワークスエンジニアブログ&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>https://cdn-ak.f.st-hatena.com/images/fotolife/s/swx-kondo/20231117/20231117113849.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-11-17 21:40:15</published>
  <title>Chat Completion API の Function Calling を使用して対話で EC2 インスタンスを起動する</title>
  <type>rich</type>
  <url>https://blog.serverworks.co.jp/openai-function-calling</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
