{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/parallel-ai/json-schema/parallel-ai-memory-retrieve-request-schema.json",
  "title": "MemoryRetrieveRequest",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/parallel-ai-memory-api-openapi.yml#/components/schemas/MemoryRetrieveRequest",
  "properties": {
    "query": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Query",
      "description": "Concise query describing the memories to retrieve. Empty queries return the most recent memories."
    },
    "limit": {
      "type": "integer",
      "maximum": 25.0,
      "minimum": 1.0,
      "title": "Limit",
      "description": "Maximum number of memories to return.",
      "default": 10
    },
    "kind": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "task",
            "monitor",
            "findall"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Kind",
      "description": "Filter memories by kind: `task`, `monitor`, or `findall`."
    },
    "since": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "format": "date-time",
      "title": "Since",
      "description": "Only return memories sourced from task, monitor, or FindAll runs completed at or after this RFC 3339 timestamp."
    },
    "memory_scope_key": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9_-]+$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Memory Scope Key",
      "description": "User-provided key identifying the memory scope to use. Omit to use personal memory, if available."
    }
  },
  "type": "object"
}