{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/grepr/json-schema/grepr-memory-search-request-schema.json",
  "title": "MemorySearchRequest",
  "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/MemorySearchRequest",
  "properties": {
    "agentId": {
      "type": "string"
    },
    "entityTags": {
      "additionalProperties": {
        "type": "string"
      },
      "default": {},
      "type": "object"
    },
    "includeVocabulary": {
      "default": false,
      "type": "boolean"
    },
    "limit": {
      "default": 3,
      "format": "int32",
      "maximum": 50,
      "minimum": 1,
      "type": "integer"
    },
    "mode": {
      "description": "The retrieval strategy. Leave it out for the server to pick: SEMANTIC when the agent searched has a semantic-search store and TEXT when it has none.",
      "enum": [
        "SEMANTIC",
        "TEXT",
        "TIMELINE"
      ],
      "type": "string"
    },
    "query": {
      "type": "string"
    },
    "recordedAfter": {
      "format": "date-time",
      "type": "string"
    },
    "significances": {
      "default": [],
      "items": {
        "enum": [
          "INCIDENT",
          "OBSERVATION",
          "INCONCLUSIVE",
          "BENIGN"
        ],
        "type": "string"
      },
      "type": "array",
      "uniqueItems": true
    },
    "verbosity": {
      "enum": [
        "COMPACT",
        "FULL"
      ],
      "type": "string"
    }
  },
  "required": [
    "significances"
  ],
  "type": "object"
}