某会话记得一个对话。 记忆会记得一个对话: 偏好、 不断出现的更正、 不变的事实。 当代理人学习到一些耐久的东西时, 而不是每次交换后, 代理商都会写一个。
方法
| 方法 | 功能 |
|---|---|
| 列表({ 限制} ) | 每一张帐户上的注,最近先更改。 |
| 保存({名称、内容,...}) | 创建或替换便条。名称决定哪个音符。 |
| (删除) | 删除一。回答是否有要删除的东西。 |
注 注 注 注
{
id: "…",
name: "tone-of-voice",
description: "How this user wants to be written to",
content: "Prefers short, direct answers in French. No bullet lists unless asked.",
type: "preference",
source: "user",
createdAt: "2026-09-30T18:02:11.000Z",
updatedAt: "2026-10-07T11:02:08.400Z"
}{
"id": "…",
"name": "tone-of-voice",
"description": "How this user wants to be written to",
"content": "Prefers short, direct answers in French. No bullet lists unless asked.",
"type": "preference",
"source": "user",
"createdAt": "2026-09-30T18:02:11.000Z",
"updatedAt": "2026-10-07T11:02:08.400Z",
}仅随索引,而不随内容
系统提示每张注单收到一行, 其名称和描述。 内容只在需要时才打开。 这使得200张注可以负担得起: 每个答题都支付索引费用, 并且仅在阅读时支付注单文本费用。
说明是决定说明是否曾经使用的原因
用户想如何写到何时才能看。
限制,为什么它们低
| 限制限制 | 值 |
|---|---|
| 账户的注解 | 200 |
| 内容内容内容内容内容内容内容 | 四千个字符, 剪过它 |
| 说明说明 | 200个字符 |
| 姓名名称名称名称名称 | 64个字符、小写、数字和连字符 |
这些不是存储限制,而是设计限制。记忆在成长时没有约束停止,记忆是内存:索引变得昂贵,代理人无法说明什么重要。文档属于存储;项目指令属于工作空间的文件。
属于这里的东西,不属于这里的东西
| 属于 | 没有 |
|---|---|
| 回答用法语,简短。 | 谈话记录 |
| 星期五部署的士兵被拒绝 | 一份文件,或一份文件的摘录。 |
| “总是呼叫生产数据库 prod-eu。 | 任何改变 每天。 |
| 两次更正:发票总额包括税收。 | 秘密 钥匙 密码 |
从来没有在纸条上写过证书
注释被按设计读回模型的上下文,并以纯文本显示给用户。 密钥属于您的秘密仓库,任何模式都不会读取。
它们是帐户的,是可见的
注释不是每期的,不是每期的:一套,可读,可由用户编辑。 source 写每一本诗的人, agent 当他学会了它的时候, user 一个人有
const notes = await api.memory.list();
const learned = notes.filter((n) => n.source === "agent");
// What the agent has decided to remember about this account.
// Showing it to the user is the honest default: it is about them.notes = api.memory.list()
learned = [n for n in notes if n["source"] == "agent"]
# What the agent has decided to remember about this account.
# Showing it to the user is the honest default: it is about them.