WSO2 · Schema

ChatMessage

ChatMessage schema from WSO2 API Manager

API ManagementGatewaysOpen SourceAPI LifecycleGraphQLSOAPREST

Properties

Name Type Description
role string user or assistant role of a chat message.
content string content of the message.
View JSON Schema on GitHub

JSON Schema

devportal-api-chat-message-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wso2/refs/heads/main/json-schema/devportal-api-chat-message-schema.json",
  "title": "ChatMessage",
  "description": "ChatMessage schema from WSO2 API Manager",
  "required": [
    "content",
    "role"
  ],
  "type": "object",
  "properties": {
    "role": {
      "type": "string",
      "description": "user or assistant role of a chat message.",
      "example": "assistant"
    },
    "content": {
      "type": "string",
      "description": "content of the message.",
      "example": "Hi, How can I help you?"
    }
  }
}