memorybooleanfalse使代理商成为会话: 第一次运行前的标识符, 谈话保持了 。
idstring重新打开会话。 memory.
memoriesbooleantrue长期说明。 false 删除 memory 及其从提示中得出的索引 。
checkpointsbooleantrue在您每次信件前抓图工作空间。 需要一个会话 。
两种不同的事物叫做记忆
记忆: 对话的存续是真实的。 记忆是该代理人对用户的长期记录。 它们独立: 代理人可以有笔记, 无需会话, 和会没有笔记。
api.agents.create({
runtime: "local", machine: pc, model,
memory: true, // the conversation is kept
memories: false, // but it keeps no notes about the user
checkpoints: true, // and the workspace is photographed
});api.agents.create(
runtime="local", machine=pc, model=model,
memory=True, # the conversation is kept
tools=[t for t in api.tools.all if t != "memory"], # but it keeps no notes about the user
checkpoints=True, # and the workspace is photographed
)什么样的会解锁
东西都藏藏的地方
| 保存 | 何处 |
|---|---|
| 信息, 以及每个工具电话的名称、 目标、 成功、 成本和持续时间 | 账户中 |
| 工具成果内容 | 仅对设备 |
| 长期附注 | 账户中 |
| 检查点 | 在工作空间中,隐藏文件夹下 |
费用
检查点占用工作空间的空间——每个指纹保存内容一次,因此一个不变的工作空间每条信息花费几千字节,最后20条信息被保存。
何时关闭检查站
在一个非常大的工作场所,或者储存配额比返回更重要的地方。 无法接受的一幅画面永远无法阻挡答案 — — 被跳过,运行仍在继续。