Snowflake · Schema

The message object

Represents a message within a chat.

Data LakesData SharingData WarehousingDatabaseSQL

Properties

Name Type Description
role string The entity that produced the message. One of `user` or `analyst`.
content array The content of the message in array of text or SQL.
View JSON Schema on GitHub

JSON Schema

snowflake-messageobject-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/MessageObject",
  "title": "The message object",
  "type": "object",
  "description": "Represents a message within a chat.",
  "properties": {
    "role": {
      "description": "The entity that produced the message. One of `user` or `analyst`.",
      "type": "string",
      "enum": [
        "user",
        "analyst"
      ],
      "example": "user"
    },
    "content": {
      "description": "The content of the message in array of text or SQL.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/MessageContent"
      },
      "example": []
    }
  },
  "required": [
    "content"
  ]
}