{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ctxstore-ai/json-schema/ctxstore-ai-fact-schema.json",
  "title": "Fact",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ctxstore-ai-openapi.yml#/components/schemas/Fact",
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "description": "The fact content"
    },
    "score": {
      "type": "number",
      "description": "Semantic similarity score (0-1)"
    },
    "category": {
      "type": "string",
      "enum": [
        "preference",
        "decision",
        "identity",
        "technical",
        "relationship"
      ]
    },
    "is_permanent": {
      "type": "boolean"
    },
    "fact_id": {
      "type": "string"
    }
  }
}