OpenAI · JSON Structure

Openai Chat Completions Tool Call Structure

Type: object Properties: 3
AIArtificial IntelligenceLarge Language ModelsT1

ToolCall is a JSON Structure definition published by OpenAI, describing 3 properties. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

id type function

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/draft/2020-12/schema",
  "name": "ToolCall",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "function": {
      "type": "object"
    }
  }
}