{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/grepr/json-schema/grepr-record-memory-request-schema.json",
  "title": "RecordMemoryRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/grepr-agent-memory-api-openapi.yml#/components/schemas/RecordMemoryRequest",
  "properties": {
    "clear": {
      "items": {
        "description": "A previously recorded field to retract, leaving it empty.",
        "enum": [
          "SYMPTOMS",
          "ROOT_CAUSE",
          "RULED_OUT",
          "RESOLUTION",
          "ENTITY_TAGS"
        ],
        "type": "string"
      },
      "type": "array",
      "uniqueItems": true
    },
    "entityTags": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object"
    },
    "resolution": {
      "type": "string"
    },
    "rootCause": {
      "type": "string"
    },
    "rootCauseConfidence": {
      "enum": [
        "CONFIRMED",
        "SUSPECTED",
        "UNKNOWN"
      ],
      "type": "string"
    },
    "ruledOut": {
      "type": "string"
    },
    "searchableBySimilarity": {
      "type": "boolean"
    },
    "significance": {
      "enum": [
        "INCIDENT",
        "OBSERVATION",
        "INCONCLUSIVE",
        "BENIGN"
      ],
      "type": "string"
    },
    "symptoms": {
      "type": "string"
    },
    "title": {
      "type": "string"
    }
  },
  "required": [
    "significance",
    "title"
  ],
  "type": "object"
}