- 文档首页
AgentKit
AgentKit
开发者指南
API参考
Memory
GetMemoryCollection - 查询记忆库详情
Memory
GetMemoryCollection - 查询记忆库详情
GetMemoryCollection - 查询记忆库详情
查询记忆库详情。
请求参数
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。 Action string 必选 示例值:GetMemoryCollection
要执行的操作,取值:GetMemoryCollection。
Version string 必选 示例值:2025-10-30
API的版本,取值:2025-10-30。
MemoryId string 必选 示例值:mem-17616225****
记忆库ID。
返回参数
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。 AssociatedRuntimes object[] 示例值:--
关联的运行时列表。
Id string 示例值:r-ye9tu7****
运行时ID。
Name string 示例值:runtime-01
运行时名称。
CreateTime string 示例值:2025-09-17T10:00:00+8:00
记忆库创建时间。
Description string 示例值:memory-test
记忆库描述。
LastUpdateTime string 示例值:2025-09-17T10:00:00+8:00
记忆库更新时间。
LongTermConfiguration object 示例值:--
长期记忆提取策略信息。
Strategies object[] 示例值:--
长期记忆提取策略列表。
CustomExtractionInstructions string 示例值:Summarize facts.
自定义策略的系统提示词(Prompt)。
Name string 示例值:s_1
长期记忆提取策略的名称。
Type string 示例值:Summary
长期记忆提取策略的类型,取值:
- UserPreference:用户偏好(用户级别)。
Managed boolean 示例值:true
记忆库是否由Agentkit平台管理,取值:
- true:表示由Agentkit平台创建,删除时会同时删除对应平台的资源。
- false:表示由提供商平台导入,删除时保留对应平台的资源。
MemoryId string 示例值:mem-17616225****
记忆库ID。
Name string 示例值:my_collection
记忆库名称。
ProjectName string 示例值:default
记忆库所属项目名称。
ProviderCollectionId string 示例值:mem-294775****
Viking或者Mem0的记忆库ID。
ProviderType string 示例值:MEM0
记忆库类型,取值:
- VIKINGDB_MEMORY:Viking长期记忆。
Region string 示例值:cn-beijing
记忆库所属区域。
Status string 示例值:Ready
记忆库状态,取值:
Tags object[] 示例值:--
记忆库标签。
Type string 示例值:custom
标签类型。
Value string 示例值:v1
标签值。
Trn string 示例值:trn:agentkit:cn-beijing:210000:memory:mem-****
记忆库的TRN。
VpcConfig object 示例值:--
VPC私网配置。
SubnetIds string[] 示例值:["subnet-1234567890"]
子网ID列表。
VpcId string 示例值:vpc-257gqcdfvx6n****
VPC ID。
请求示例
Content-Type: application/json
"MemoryId": "mem-1761138****"
返回示例
"RequestId": "202106111445100102252431000052****",
"Action": "GetMemoryCollection",
"Version": "2025-10-10",
"MemoryId": "mem-1761138****",
"Name": "my_collection",
"Description": "memory-test",
"Trn": "trn:appo:memory:cn-beijing:123456:memory/mem-1761138****",
"ProviderCollectionId": "mem-294775****",
"LongTermConfiguration": {
"CustomExtractionInstructions": "Extract key information from conversation",
"Name": "agentkit_semantic_v1"
"LastUpdateTime": "2025-09-16T10:05:00Z",
"CreateTime": "2025-09-16T10:00:00Z"
错误码
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
最近更新时间:2026.02.14 11:21:12