GetMemoryStore

Updated at:

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

cms:GetMemoryStore

get

*MemoryStore

acs:cms:{#regionId}:{#accountId}:workspace/{#WorkspaceName}/memorystore/{#MemoryStoreName}

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.