ChatGPT · JSON Structure

Chatgpt Chat Completions Chat Completion Message Structure

Type: object Properties: 6
AgentsAIChatGPTEmbeddingsFine-TuningGPT-4GPT-5Language ModelOpenAIRealtime

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

Properties

role content name tool_calls tool_call_id refusal

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

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/draft/2020-12/schema",
  "name": "ChatCompletionMessage",
  "type": "object",
  "properties": {
    "role": {
      "type": "string"
    },
    "content": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "tool_calls": {
      "type": "array"
    },
    "tool_call_id": {
      "type": "string"
    },
    "refusal": {
      "type": "string"
    }
  }
}