{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cathedral-ai-com/json-schema/cathedral-ai-com-memory-store-schema.json",
  "title": "MemoryStore",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cathedral-ai-com-openapi.json#/components/schemas/MemoryStore",
  "properties": {
    "content": {
      "type": "string",
      "maxLength": 16384,
      "minLength": 1,
      "title": "Content"
    },
    "category": {
      "type": "string",
      "maxLength": 50,
      "title": "Category",
      "default": "general"
    },
    "tags": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Tags"
    },
    "importance": {
      "type": "number",
      "maximum": 1.0,
      "minimum": 0.0,
      "title": "Importance",
      "default": 0.5
    },
    "ttl_days": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Ttl Days",
      "description": "Days until this memory expires. Omit for no expiry."
    },
    "source_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Type",
      "description": "Origin of this memory: self | external | tool | human",
      "default": "self"
    }
  },
  "type": "object",
  "required": [
    "content"
  ]
}