Agent Memory API 是一套为 AI Agent 提供记忆能力的核心服务接口,支持存储、检索和管理历史交互信息。该 API 通过统一的 POST + JSON 接口设计,旨在提供一致的用户体验和易于集成的开发接口。
接口层级 | 接口名 | 接口含义 | 请求方式 | URL 拼接地址 |
Seession | 创建 Session | POST | https://{服务访问地址}/memory/v1/session/create | |
| 查询 Session | POST | https://{服务访问地址}/memory/v1/session/query | |
| 更新 Session | POST | https://{服务访问地址}/memory/v1/session/update | |
| 删除 Session | POST | https://{服务访问地址}/memory/v1/session/delete | |
| 搜索 Session | POST | https://{服务访问地址}/memory/v1/session/search | |
Event | 追加 Event | POST | https://{服务访问地址}/memory/v1/event/append | |
| 查询 Event | POST | https://{服务访问地址}/memory/v1/event/query | |
| 删除 Event | POST | https://{服务访问地址}/memory/v1/event/delete | |
State | 设置 State | POST | https://{服务访问地址}/memory/v1/state/set | |
| 获取 State | POST | https://{服务访问地址}/memory/v1/state/get | |
| 获取所有 State | POST | https://{服务访问地址}/memory/v1/state/get_all | |
| 删除 State | POST | https://{服务访问地址}/memory/v1/state/delete | |
| 清空 State | POST | https://{服务访问地址}/memory/v1/state/flush | |
Record | 创建 Record | POST | https://{服务访问地址}/memory/v1/record/append | |
| 查询 Record | POST | https://{服务访问地址}/memory/v1/record/query | |
| 更新 Record | POST | https://{服务访问地址}/memory/v1/record/update | |
| 删除 Record | POST | https://{服务访问地址}/memory/v1/record/delete | |
| 搜索 Record | POST | https://{服务访问地址}/memory/v1/record/search |