Claude · Schema
Message
A message response from Claude.
Artificial IntelligenceChatbotConversational AIGenerative AILarge Language ModelsMachine LearningNatural Language Processing
Properties
| Name | Type | Description |
|---|---|---|
| id | string | Unique object identifier for the message. |
| type | string | Object type. Always "message" for message responses. |
| role | string | Conversational role of the generated message. Always "assistant". |
| content | array | Content generated by the model. Array of content blocks, each of which has a type that determines its shape. |
| model | string | The model that handled the request. |
| stop_reason | string | The reason the model stopped generating tokens. |
| stop_sequence | string | The stop sequence that caused the model to stop, if applicable. Null if the model stopped for another reason. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Message",
"type": "object",
"description": "A message response from Claude.",
"properties": {
"id": {
"type": "string",
"description": "Unique object identifier for the message."
},
"type": {
"type": "string",
"description": "Object type. Always \"message\" for message responses."
},
"role": {
"type": "string",
"description": "Conversational role of the generated message. Always \"assistant\"."
},
"content": {
"type": "array",
"description": "Content generated by the model. Array of content blocks, each of which has a type that determines its shape."
},
"model": {
"type": "string",
"description": "The model that handled the request."
},
"stop_reason": {
"type": "string",
"description": "The reason the model stopped generating tokens."
},
"stop_sequence": {
"type": "string",
"description": "The stop sequence that caused the model to stop, if applicable. Null if the model stopped for another reason."
}
}
}