ChatGPT · JSON Structure

Chatgpt Chat Completions Chat Completion Assistant Message Structure

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

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

Properties

role content tool_calls refusal

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

JSON Structure

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