获取全部记忆。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
cms:GetMemories |
get |
*MemoryStore
|
无 | 无 |
请求语法
POST /workspace/{workspace}/memorystore/{memoryStoreName}/memory/query HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| workspace |
string |
是 |
工作空间名称 |
workspace-test |
| memoryStoreName |
string |
是 |
记忆库名称 |
test-memory-store |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| body |
object |
否 |
请求 Body |
|
| userId |
string |
否 |
用户 Id |
test_user_001 |
| agentId |
string |
否 |
应用的 agentId |
952730652285943809 |
| appId |
string |
否 |
应用 Id |
150130323 |
| runId |
string |
否 |
运行 id |
jr-80ded1d6953c64ea |
| pageSize |
integer |
否 |
分页大小 |
1000 |
| page |
integer |
否 |
页码 |
1 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
响应数据 |
||
| requestId |
string |
请求 ID。 |
8FDE2569-626B-5176-9844-28877A***** |
| results |
array<object> |
返回值 |
|
|
array<object> |
返回值 |
||
| actorId |
string |
操作者 Id |
test_session_001 |
| agentId |
string |
应用的 agentId |
980565235819266048 |
| createdAt |
string |
创建时间 |
1747623093939 |
| hash |
string |
记忆哈希值 |
73ad89f2d56c2f8615e5dd0cef7b4c41c074277c91fa0e31fc5b41802c0481f2 |
| id |
string |
记忆 ID |
019ca1e5-7307-7d50-b943-5e628326a8ed |
| memory |
string |
记忆 |
My name is Zhang San and I live in Hangzhou. |
| metadata |
object |
元数据 |
{"sessionId":"test_session_001"} |
| role |
string |
消息发起角色 |
user |
| runId |
string |
运行 id |
jr-965a0b00cb42a43b |
| score |
number |
相似性分数 |
30.12 |
| updatedAt |
string |
更新时间 |
1752825865045 |
| userId |
string |
用户 Id |
test_session_001 |
| appId |
string |
test_user_001 |
|
| relations |
array<object> |
关系 |
|
|
object |
关系 |
||
| destination |
string |
目标 |
test |
| relationship |
string |
关系 |
test |
| source |
string |
源 |
test_namespace/RegistryModule-test2153b9f3-0be6-455e-9efd-05fd31f62885/alicloud |
示例
正常返回示例
JSON格式
{
"requestId": "8FDE2569-626B-5176-9844-28877A*****",
"results": [
{
"actorId": "test_session_001",
"agentId": "980565235819266048",
"createdAt": "1747623093939",
"hash": "73ad89f2d56c2f8615e5dd0cef7b4c41c074277c91fa0e31fc5b41802c0481f2",
"id": "019ca1e5-7307-7d50-b943-5e628326a8ed",
"memory": "My name is Zhang San and I live in Hangzhou.",
"metadata": {
"sessionId": "test_session_001"
},
"role": "user",
"runId": "jr-965a0b00cb42a43b",
"score": 30.12,
"updatedAt": "1752825865045",
"userId": "test_session_001",
"appId": "test_user_001"
}
],
"relations": [
{
"destination": "test",
"relationship": "test",
"source": "test_namespace/RegistryModule-test2153b9f3-0be6-455e-9efd-05fd31f62885/alicloud"
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。