All Products
Search
Document Center

Tablestore:Query a memory store

Last Updated:Sep 24, 2026

Use the GetMemoryStore operation to query the details of a memory store, including the current input and output types.

Prerequisites

  • An AgentStorage instance has been created and its status is normal. Obtain the instance endpoint and instance name.

  • An API Key has been created.

Request parameters

Field

Type

Required

Description

memoryStoreName

string

Yes

The name of the memory store.

Request example

When you use API Key authentication, pass the instance name and API Key in the x-ots-instancename and x-ots-apikey request headers.

curl -X POST https://<endpoint>/GetMemoryStore \
  -H "x-ots-instancename: <instance-name>" \
  -H "x-ots-apikey: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "memoryStoreName": "agent_memory"
}'

Response

Field

Description

otsInstance

The name of the AgentStorage instance.

memoryStoreName

The name of the memory store.

storeUid

The unique ID of the memory store. This field may not be returned for some memory stores.

description

The description of the memory store. Omitted if not set.

extractInstructions

Custom memory extraction instructions. Omitted if not set.

inputType

The input type: messages or file.

outputTypes

The set of output types. Valid values: structured or file.

storageMode

This field may be returned for memory stores declared with the compatibility type, and is not returned for memory stores declared with the new type.

wikiReflectionEnabled

Indicates whether Wiki reflection is enabled.

createdAt

The creation time.

updatedAt

The last update time.

{
  "otsInstance": "your-instance-name",
  "memoryStoreName": "agent_memory",
  "storeUid": "store_c346adcc-2c6d-d69f-75da-4642f7b76a27",
  "description": "Agent 对话记忆库",
  "inputType": "messages",
  "outputTypes": ["structured", "file"],
  "wikiReflectionEnabled": false,
  "createdAt": "2026-08-31T07:19:48.935Z",
  "updatedAt": "2026-08-31T07:25:10.321Z"
}