{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/memoryplugin-com/json-schema/memoryplugin-com-chat-history-inject-response-schema.json",
  "title": "ChatHistoryInjectResponse",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/memoryplugin-com-openapi.json#/components/schemas/ChatHistoryInjectResponse",
  "type": "object",
  "properties": {
    "content": {
      "type": "string"
    },
    "sources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ChatHistoryInjectionSource"
      }
    },
    "tokenCount": {
      "type": "integer"
    },
    "message": {
      "type": "string"
    },
    "processingTime": {
      "type": "string",
      "description": "Human-readable processing time, e.g. '123ms'"
    },
    "model": {
      "type": "string"
    },
    "timingBreakdown": {
      "type": "object",
      "additionalProperties": true
    },
    "chunking": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "cross",
        "per-message",
        null
      ]
    }
  },
  "$defs": {
    "ChatHistoryInjectionSource": {
      "type": "object",
      "properties": {
        "conversationId": {
          "type": "string"
        },
        "conversationTitle": {
          "type": "string"
        },
        "messageId": {
          "type": "string"
        },
        "date": {
          "type": "string"
        },
        "relevanceScore": {
          "type": "number"
        }
      }
    }
  }
}