根据 ID 获取单个记忆条目的完整内容。
HTTP 200 OK
返回完整的 MemoryEntry 对象(包含
路径参数
| 参数 | 类型 | 是否必需 | 说明 |
|---|---|---|---|
memory_store_id | string | 是 | Memory Store ID,带 memstore_ 前缀 |
memory_id | string | 是 | 记忆条目 ID,带 mem_ 前缀 |
请求头
| Header | 是否必需 | 说明 |
|---|---|---|
| Authorization | 是 | Bearer $QODER_PAT |
请求示例
返回示例
HTTP 200 OK
返回完整的 MemoryEntry 对象(包含 content)。
返回参数
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 唯一标识 |
type | string | 固定为 "memory" |
store_id | string | 所属 Memory Store 的 ID |
path | string | 相对路径 |
content | string | 完整记忆内容 |
size | int64 | 内容大小(字节) |
content_sha256 | string | 内容 SHA-256 哈希 |
version | int64 | 当前版本号 |
metadata | object | 自定义元数据 |
created_at | string | 创建时间(ISO 8601) |
updated_at | string | 最后更新时间(ISO 8601) |
错误码
| HTTP | 类型 | 触发条件 |
|---|---|---|
| 401 | TOKEN_INVALID | 缺失或无效的鉴权 Token |
| 404 | not_found_error | Memory Store 或记忆条目不存在 |
说明
- 该接口返回 content 字段(列表接口不会返回)。
- 返回的是最新版本的完整内容。