{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mammoth-io/json-schema/mammoth-io-ai-connector-chat-schema-chat-history-response-schema.json",
  "title": "ChatHistoryResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mammoth-io-connector-chat-api-openapi.yml#/components/schemas/ai_connector_chat_schema_ChatHistoryResponse",
  "properties": {
    "session_id": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "connection_key": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "messages": {
      "items": {
        "$ref": "#/$defs/DisplayMessage"
      },
      "type": "array"
    }
  },
  "type": "object",
  "required": [
    "messages"
  ],
  "$defs": {
    "DisplayMessage": {
      "properties": {
        "role": {
          "type": "string"
        },
        "content": {
          "type": "string"
        }
      },
      "type": "object",
      "required": [
        "content",
        "role"
      ],
      "title": "DisplayMessage"
    }
  }
}