会话

概览

记有内存的代理将对话保存在过程之外。 账户保留了所说的话和使用的内容; 设备持有细节, 工具结果永远不能离开设备 。

memory: truehybrid storagereopen from anywhere
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

跑步无 memory 与物体一起 与它一起消失 memory: true 代理是一个会话: 它从创建之时起就有标识符, 对话持续了一次重新启动 。

分裂,这就是整个设计

保存何处因此,
信息, 以及每个工具电话的名称、 简短目标、 成功、 信用和持续时间账户中任何设备都可以重新开启对话 并显示发生了什么。
工具成果内容仅对设备文件中包含什么文件,数据库返回什么,页面上说什么——平台没有储存任何文件。
这就是为什么在别处重新开放是故意部分地进行

在运行它的设备上, 日记给出了完整的简历。 从另一个设备中, 谈话和工具列表会回来, 工具返回时没有返回。 这不是一个要固定的限制, 也就是会话不会成为您文件的副本。

使用一个

const agent = api.agents.create({
  runtime: "local", machine: pc, model: "gemini-3.5-flash",
  memory: true,
});

agent.id;                       // already set, before the first run
await agent.run({ inputs: "Read the notes and list what is unfinished." });

// Another process, later
const again = api.agents.get(agent.id, { machine: pc });
await again.run({ inputs: "Now do the first one." });
agent = api.agents.create(
    runtime="local", machine=pc, model="gemini-3.5-flash",
    memory=True,
)

agent.id                        # already set, before the first run
agent.run(inputs="Read the notes and list what is unfinished.")

# Another process, later
again = api.agents.get(agent.id, machine=pc)
again.run(inputs="Now do the first one.")

重新找回他们

const sessions = await api.agents.list({ limit: 30 });   // most recent first
sessions = api.agents.list(limit=30)   # most recent first

什么样的会解锁

  • 检查站 - 回到早先的信息需要开会。
  • 压缩 它可以活过重新开始
  • recall - 搜索账户先前的谈话。
  • A标题,取自第一个信息, 显示在列表中 。

结束

await agent.destroy();   // the account's copy, the device journal, and its checkpoints
agent.destroy()   # the device journal and its checkpoints

拒绝的不是吞咽,而是拒绝的:仍然存在的届会决不能报告已消失。 从未被书面作为销毁的答复,这是要求的结果。