Bifrost · Schema

ChatMessage

A single message in a chat conversation.

AI GatewayLLMLoad BalancingOpen-SourceOpenAI-CompatibleMCP

Properties

Name Type Description
role string Role of the message author.
content string Content of the message.
View JSON Schema on GitHub

JSON Schema

bifrost-chat-message-schema.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "ChatMessage",
  "type": "object",
  "description": "A single message in a chat conversation.",
  "properties": {
    "role": {
      "type": "string",
      "description": "Role of the message author.",
      "enum": [
        "system",
        "user",
        "assistant"
      ],
      "example": "user"
    },
    "content": {
      "type": "string",
      "description": "Content of the message.",
      "example": "Hello, how are you?"
    }
  },
  "required": [
    "role",
    "content"
  ]
}