{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-list-memory-records-input-schema.json",
  "title": "ListMemoryRecordsInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-memoryrecords-api-openapi.yml#/components/schemas/ListMemoryRecordsInput",
  "type": "object",
  "properties": {
    "memoryId": {
      "type": "string",
      "description": "The identifier of the AgentCore Memory resource for which to list memory records."
    },
    "namespace": {
      "type": "string",
      "description": "The exact namespace to filter memory records by. Returns all memory records that matches the provided namespace. Either namespace or namespacePath is required."
    },
    "namespacePath": {
      "type": "string",
      "description": "Use namespacePath for hierarchical retrievals. Return all memory records where namespace falls under the same parent hierarchy. Either namespace or namespacePath is required."
    },
    "memoryStrategyId": {
      "type": "string",
      "description": "The memory strategy identifier to filter memory records by. If specified, only memory records with this strategy ID are returned."
    },
    "maxResults": {
      "type": "integer",
      "description": "The maximum number of results to return in a single call. The default value is 20."
    },
    "nextToken": {
      "type": "string",
      "description": "The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results."
    },
    "metadataFilters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MemoryMetadataFilterExpression"
      },
      "description": "A list of metadata filter expressions to scope the returned memory records."
    }
  },
  "required": [
    "memoryId"
  ],
  "$defs": {
    "MemoryMetadataFilterExpression": {
      "type": "object",
      "properties": {
        "left": {
          "$ref": "#/$defs/MemoryRecordLeftExpression"
        },
        "operator": {
          "type": "string",
          "enum": [
            "EQUALS_TO",
            "EXISTS",
            "NOT_EXISTS",
            "BEFORE",
            "AFTER",
            "CONTAINS",
            "GREATER_THAN",
            "GREATER_THAN_OR_EQUALS",
            "LESS_THAN",
            "LESS_THAN_OR_EQUALS"
          ],
          "description": "The relationship between the metadata key and value to match when applying the metadata filter."
        },
        "right": {
          "$ref": "#/$defs/MemoryRecordRightExpression"
        }
      },
      "required": [
        "left",
        "operator"
      ]
    },
    "MemoryRecordLeftExpression": {
      "type": "object",
      "properties": {
        "metadataKey": {
          "type": "string",
          "description": "The metadata key to filter on."
        }
      },
      "description": "Exactly one member is set."
    },
    "MemoryRecordMetadataValue": {
      "type": "object",
      "properties": {
        "stringValue": {
          "type": "string",
          "description": "A string value."
        },
        "stringListValue": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of string values."
        },
        "numberValue": {
          "type": "number",
          "description": "A numeric value."
        },
        "dateTimeValue": {
          "type": "string",
          "description": "A timestamp value in ISO 8601 UTC format."
        }
      },
      "description": "Exactly one member is set."
    },
    "MemoryRecordRightExpression": {
      "type": "object",
      "properties": {
        "metadataValue": {
          "$ref": "#/$defs/MemoryRecordMetadataValue"
        }
      },
      "description": "Exactly one member is set."
    }
  }
}