Ir para o conteúdo
DOOLS

Construtor de definição de ferramenta OpenAI

Projete visualmente definições de função para a API de chamada de ferramentas OpenAI e exporte como JSON.

Definição de ferramenta

Parâmetros

Parâmetro 1
Parâmetro 2

JSON de definição de ferramenta

{
  "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"
      ]
    }
  }
}
Linhas: 27Personagens: 573