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 |
|
|
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 |
|
|
The name of the AgentStorage instance. |
|
|
The name of the memory store. |
|
|
The unique ID of the memory store. This field may not be returned for some memory stores. |
|
|
The description of the memory store. Omitted if not set. |
|
|
Custom memory extraction instructions. Omitted if not set. |
|
|
The input type: |
|
|
The set of output types. Valid values: |
|
|
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. |
|
|
Indicates whether Wiki reflection is enabled. |
|
|
The creation time. |
|
|
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"
}