Reasonix写代码的时候工具污染了有没有大佬看看怎么解决 #1852
Replies: 1 comment 1 reply
-
|
Tried to reproduce this against current Also grepped the whole codebase: Reasonix only has the DSML scavenger (full-width So what you're seeing is most likely one of:
To narrow it down, could you share:
That'll let me confirm whether the close tag is coming from the model's response or from somewhere in our path. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Reasonix 工具框架的 XML 参数解析器 有 bug:
症状:
每次调用工具(run_command、read_file、list_directory 等),最后一个参数的值末尾会被拼上 这个标签字符串。
例如:
run_command("echo hello")
→ 实际传给 shell 的是 "echo hello"
read_file("file.txt")
→ 实际打开的是 "file.txt"
唯一不受影响的是 glob — 说明它的参数解析路径不一样。
原因推测:
解析工具调用的 XML 时,遍历参数节点拼装参数值,处理最后一个节点时没有正确截断 </关闭标签>,把标签文本也当成了参数值的一部分。
Beta Was this translation helpful? Give feedback.
All reactions