Claude · Schema

MessageParam

An input message in the conversation.

Artificial IntelligenceChatbotsConversational AIGenerative AILarge Language ModelsMachine-LearningNatural Language Processing

Properties

Name Type Description
role string The role of the message author.
content string The content of the message. Can be a string or array of content blocks.
View JSON Schema on GitHub

JSON Schema

claude-messages-message-param-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "MessageParam",
  "type": "object",
  "description": "An input message in the conversation.",
  "properties": {
    "role": {
      "type": "string",
      "description": "The role of the message author."
    },
    "content": {
      "type": "string",
      "description": "The content of the message. Can be a string or array of content blocks."
    }
  }
}