Helicone · Schema

Message

AI GatewaysAI MonitoringGatewaysLLM ObservabilityLLM RoutingPrompt Management

Properties

Name Type Description
ending_event_id string
trigger_event_id string
start_timestamp string
annotations array
reasoning string
deleted boolean
contentArray array
idx number
detail string
filename string
file_id string
file_data string
type string
audio_data string
image_url string
timestamp string
tool_call_id string
tool_calls array
mime_type string
content string
name string
instruction string
role object
id string
_type string
View JSON Schema on GitHub

JSON Schema

helicone-message-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Message",
  "title": "Message",
  "properties": {
    "ending_event_id": {
      "type": "string"
    },
    "trigger_event_id": {
      "type": "string"
    },
    "start_timestamp": {
      "type": "string"
    },
    "annotations": {
      "items": {
        "properties": {
          "content": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "url_citation"
            ],
            "nullable": false
          }
        },
        "required": [
          "title",
          "url",
          "type"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "reasoning": {
      "type": "string"
    },
    "deleted": {
      "type": "boolean"
    },
    "contentArray": {
      "items": {
        "$ref": "#/components/schemas/Message"
      },
      "type": "array"
    },
    "idx": {
      "type": "number",
      "format": "double"
    },
    "detail": {
      "type": "string"
    },
    "filename": {
      "type": "string"
    },
    "file_id": {
      "type": "string"
    },
    "file_data": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "input_image",
        "input_text",
        "input_file"
      ]
    },
    "audio_data": {
      "type": "string"
    },
    "image_url": {
      "type": "string"
    },
    "timestamp": {
      "type": "string"
    },
    "tool_call_id": {
      "type": "string"
    },
    "tool_calls": {
      "items": {
        "$ref": "#/components/schemas/FunctionCall"
      },
      "type": "array"
    },
    "mime_type": {
      "type": "string"
    },
    "content": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "instruction": {
      "type": "string"
    },
    "role": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "string",
          "enum": [
            "user",
            "assistant",
            "system",
            "developer"
          ]
        }
      ]
    },
    "id": {
      "type": "string"
    },
    "_type": {
      "type": "string",
      "enum": [
        "functionCall",
        "function",
        "image",
        "file",
        "message",
        "autoInput",
        "contentArray",
        "audio"
      ]
    }
  },
  "required": [
    "_type"
  ],
  "type": "object"
}