Claude · JSON Structure

Claude Messages Message Structure

Type: object Properties: 7
Artificial IntelligenceChatbotConversational AIGenerative AILarge Language ModelsMachine LearningNatural Language Processing

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

Properties

id type role content model stop_reason stop_sequence

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

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/draft/2020-12/schema",
  "name": "Message",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "role": {
      "type": "string"
    },
    "content": {
      "type": "array"
    },
    "model": {
      "type": "string"
    },
    "stop_reason": {
      "type": "string"
    },
    "stop_sequence": {
      "type": "string"
    }
  }
}