Skip to content

[Feature Request] 提升工具调用的稳定性 #291

@TesseractLHY

Description

@TesseractLHY

🥰 需求描述

当前的工具调用方案失败概率虽然比起之前好了不少,但还是不低,测下来常见的情况有
<tool_calls><read_file></tool_calls>
<tool_call name="read_file`">...</tool_call>
...
缺失或混淆或tool_call和tool_calls,parameter和parameters

Image

🧐 解决方案

在提示词的不要做部分加入这些示例
取消tool_calls,只要tool_call标签即可
把parameter改为param,区别parameters
放宽检测

📝 补充信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions