Repository navigation
web_fetch 截断与 tool-result-pruner 剪裁均对上层不可感知,建议增加显式截断标记 #8973
Sodapopper-pixel
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
背景
在一个基于 DSH 的多 agent 建课流程(learning 预设、角色分工 5 层、单次任务 40+ 子代理)实测中,有两种静默截断行为让上层流程无法做出正确决策,记录如下。
1. web_fetch 响应超上限:返回无显式标记,spill 文件同样残缺
Content truncated. Fetch a more specific URL or section for the full text.;超过上限的完整结果按机制落 spill 文件,但 spill 文件本身也在同一上限处被截断,且无任何截断标记。2. tool-result-pruner 静默剪裁,上层不可感知
thresholdChars: 8192(headChars: 4096/tailChars: 1024),超长工具结果(含长文件read)被静默剪裁,返回内容无任何提示。Omitted … bytes形式),并在文档中说明该行为与各配置项含义。环境
tool-web(fetch: true)+tool-result-pruner(thresholdChars: 8192)All reactions