{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-get-agent-memory-response-schema.json",
  "title": "GetAgentMemoryResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-memories-api-openapi.yml#/components/schemas/GetAgentMemoryResponse",
  "type": "object",
  "properties": {
    "nextToken": {
      "type": "string",
      "description": "If the total number of results is greater than the maxItems value provided in the request, use this token when making another request in the nextToken field to return the next batch of results."
    },
    "memoryContents": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Memory"
      },
      "description": "Contains details of the sessions stored in the memory"
    }
  },
  "$defs": {
    "Memory": {
      "type": "object",
      "properties": {
        "sessionSummary": {
          "$ref": "#/$defs/MemorySessionSummary"
        }
      },
      "description": "Exactly one member is set."
    },
    "MemorySessionSummary": {
      "type": "object",
      "properties": {
        "memoryId": {
          "type": "string",
          "description": "The unique identifier of the memory where the session summary is stored."
        },
        "sessionId": {
          "type": "string",
          "description": "The identifier for this session."
        },
        "sessionStartTime": {
          "type": "string",
          "format": "date-time",
          "description": "The start time for this session."
        },
        "sessionExpiryTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time when the memory duration for the session is set to end."
        },
        "summaryText": {
          "type": "string",
          "description": "The summarized text for this session."
        }
      }
    }
  }
}