Snowflake · Schema

MessageObject

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

cortex-analyst-message-object-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "MessageObject",
  "type": "object",
  "description": "Represents a message within a chat.",
  "properties": {
    "role": {
      "type": "string",
      "description": "The entity that produced the message. One of `user` or `analyst`."
    },
    "content": {
      "type": "array",
      "description": "The content of the message in array of text or SQL."
    }
  }
}