跳到正文
AgentLab·· 2026-03-04

Claude Code 2.1.66: Claude Code 2.1.66:Agent 调用可选模型与轮次上限

AgentLab 分析摘要

Agent Tool Definition 增加 `model` 和 `max_turns` 参数:调用方可指定 sonnet、opus 或 haiku,并设置正整数的 Agentic Turn 上限;这把模型选择和执行预算纳入 Agent 调用契约。System Prompt 同时说明,具备“access to current context”的 Agent 可读取 Tool Call 前的完整对话历史,因此可以用简短提示引用先前 Context;这会影响 Context 传递方式。官方发布说明记录了减少误报错误日志,但 Runtime Prompt 差异没有展示对应实现。

分析与证据

分析已完成

AgentLab · claude-code 2.1.66

来源:AgentLab · agentlab.dairui1.com