每一类别,但 read, memory 和 task 拒绝时被直接拒绝, 甚至没有咨询回拨, 因为没有决定权。 拒绝时指定模式的名称, 并说用户会切换它执行 。
// What the model receives when it tries to write in plan mode
"Refused: plan mode is read-only. Present the plan; the user will switch mode to execute it."# What the model receives when it tries to write in plan mode
"Refused: plan mode is read-only. Present the plan; the user will switch mode to execute it."教学是真正的特色
尝试后拒绝后拒绝会花费转折;收到指示前的指令不会花费任何费用
系统提示系统提示系统以计划模式指示代理商进行调查,然后提出明确的计划,然后与 todo_write。所以它花着脚步阅读和推理,而不是一次发现一个拒绝。
还能做什么
- 读取,列表,球和 grep 整个工作空间。
- 搜索网页和开放页面。
- 读取连接存储存储
query_storage. - 阅读其长期注释,搜索先前的会话
recall. - 向分代理人派遣调查代表——
task允许, 并且它的孩子也处于计划模式。 - 写计划
todo_write.
二阶段模式
const agent = api.agents.create({
runtime: "local", machine: pc, model: "gemini-3.5-flash",
memory: true, // so the plan survives into the second phase
mode: "plan",
});
const plan = await agent.run({ inputs: "Migrate the date handling to UTC everywhere." });
console.log(plan.text, plan.todos);
// The person reads it and agrees
agent.setMode("auto");
await agent.run({ inputs: "Do it." });agent = api.agents.create(
runtime="local", machine=pc, model="gemini-3.5-flash",
memory=True, # so the plan survives into the second phase
mode="plan",
)
plan = agent.run(inputs="Migrate the date handling to UTC everywhere.")
print(plan["text"], plan["todos"])
# The person reads it and agrees
agent.set_mode("auto")
agent.run(inputs="Do it.")与 memory: true 第二步已经掌握了第一个读到的一切 所以计划是未经重新调查执行的
转弯之后,没有东西花
money 被拒绝与其它的一样, 所以计划模式运行不能购买空间。 已付 。 原文如下: 搜索、网页记录 read 计划运行不是免费的