从工具错误中恢复
如果模型可以从工具错误中恢复,请设置onError: "return-to-model"。错误会变成结构化工具结果,运行可选择其他操作。对于不安全或无法恢复的操作,请保留 fail-run 行为。
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
处理 PHP Agent 中的模型、工具、验证、超时和续接失败。
onError: "return-to-model"。错误会变成结构化工具结果,运行可选择其他操作。对于不安全或无法恢复的操作,请保留 fail-run 行为。