本文へ移動
DOOLS

OpenAI ツール定義ビルダー

OpenAI ツール呼び出し API の関数定義を視覚的に設計し、JSON としてエクスポートします。

ツールの定義

パラメータ

パラメーター 1
パラメーター 2

ツール定義 JSON

{
  "type": "function",
  "function": {
    "name": "get_weather",
    "description": "Get the current weather for a location",
    "parameters": {
      "type": "object",
      "properties": {
        "location": {
          "type": "string",
          "description": "The city and state, e.g. San Francisco, CA"
        },
        "unit": {
          "type": "string",
          "description": "Temperature unit",
          "enum": [
            "celsius",
            "fahrenheit"
          ]
        }
      },
      "required": [
        "location"
      ]
    }
  }
}
ライン: 27キャラクター: 573