> ## Documentation Index
> Fetch the complete documentation index at: https://docs.veadk.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# 记忆

将已有会话的事件写入已配置的记忆后端，供后续检索使用。需要先配置服务的记忆后端，并确认应用、用户与会话标识；此接口不负责创建记忆后端

写入会把会话数据交给该后端处理，成功返回 JSON `null`，不包含提取出的记忆。Harness 部署使用对应的[记忆写入接口](https://docs.veadk.xyz/productions/api-reference/preview/zh/harness-runtime/update-memory.md)

| 方法 | 路径 | 接口 |
| - | - | - |
| PATCH | `/apps/{app_name}/users/{user_id}/memory` | [将会话写入记忆](https://docs.veadk.xyz/productions/api-reference/preview/zh/agent-api-server/update-memory.md) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.