Hoppa till innehållet
DOOLS

OpenAI verktygsdefinitionsbyggare

Designa visuellt funktionsdefinitioner för OpenAIs tool-calling API och exportera som JSON.

Verktygsdefinition

Parametrar

Parameter 1
Parameter 2

Verktygsdefinition 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"
      ]
    }
  }
}
Rader: 27Tecken: 573