GetMemoryStore
Queries memory stores.
Operation description
Typically used in conjunction with the QueryMetricMeta operation to query metrics and the QueryMetricList or QueryMetricLast operation to query monitoring data.
Request type
POST|GET
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:GetMemoryStore |
get |
*MemoryStore
|
None | None |
Request syntax
GET /workspace/{workspace}/memorystore/{memoryStoreName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| workspace |
string |
Yes |
The name of the workspace. |
default-cms-1654218965343050-cn-hangzhou |
| memoryStoreName |
string |
Yes |
The name of the memory store. |
test-memory-store |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| description |
string |
The description. |
test |
| createTime |
string |
The creation time. |
1764556182850 |
| updateTime |
string |
The update time. |
1764556182850 |
| shortTermTtl |
integer |
The retention period for short-term memory. |
10 |
| memoryStoreName |
string |
The name of the memory store. |
test-memory-store |
| workspace |
string |
The name of the workspace. |
default-cms-xxxxxx-cn-beijing |
| regionId |
string |
The region ID. |
cn-beijing |
| requestId |
string |
The request ID. |
0B9377D9-C56B-5C2E-A8A4-A01D6CC3F4B8 |
| extractionStrategies |
array |
The supported extraction strategies: Episodic, Summary, and Fact. |
|
|
string |
The supported extraction strategies: Episodic, Summary, and Fact. |
Fact |
|
| customExtractionStrategies |
array |
The custom extraction strategies. |
|
| CustomExtractionStrategy |
The custom extraction strategies. |
[{}] |
|
| shortTermStorage |
object |
The short-term memory storage. |
|
| project |
string |
The name of the Simple Log Service project. |
wk_cms_data_warehouse |
| logstore |
string |
The name of the Simple Log Service Logstore. |
memory-store |
| sourceType |
string |
The memory source. |
Trace |
| traceSourceConfig |
object |
The configuration when the sourceType is Trace. |
|
| workspace |
string |
The workspace where the trace is located. |
test-workspace |
| includeOutput |
boolean |
Specifies whether to include the LLM output in memory extraction. |
|
| query |
string |
The Simple Log Service query statement used to filter traces. |
(serviceName : "langchain-rag" or serviceName : "agentscope-code-correction") and hostname = frontend-proxy-999c48c8d-hvk6c |
Examples
Success response
JSON format
{
"description": "test",
"createTime": "1764556182850",
"updateTime": "1764556182850",
"shortTermTtl": 10,
"memoryStoreName": "test-memory-store",
"workspace": "default-cms-xxxxxx-cn-beijing",
"regionId": "cn-beijing",
"requestId": "0B9377D9-C56B-5C2E-A8A4-A01D6CC3F4B8",
"extractionStrategies": [
"Fact"
],
"customExtractionStrategies": [
{
"strategyName": "test1",
"strategyType": "Fact",
"extractionPrompt": "test",
"updatePrompt": "test",
"description": "test"
}
],
"shortTermStorage": {
"project": "wk_cms_data_warehouse",
"logstore": "memory-store"
},
"sourceType": "Trace",
"traceSourceConfig": {
"workspace": "test-workspace",
"includeOutput": false,
"query": "(serviceName : \"langchain-rag\" or serviceName : \"agentscope-code-correction\") and hostname = frontend-proxy-999c48c8d-hvk6c "
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.