Vai al contenuto
DOOLS

Costruttore definizione strumenti OpenAI

Progetta visivamente definizioni di funzioni per l'API tool-calling di OpenAI ed esporta in JSON.

Definizione dello strumento

Parametri

Parametro 1
Parametro 2

Definizione strumento 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"
      ]
    }
  }
}
Righe: 27Caratteri: 573