Recover malformed tool calls safely
Detect and safely recover malformed, truncated, or provider-rejected tool calls through bounded schema-guided repair and retry or regeneration, while preserving strict failures for unsupported shapes and streaming errors.
Explore challenge
The problem
Detect and safely recover malformed, truncated, or provider-rejected tool calls through bounded schema-guided repair and retry or regeneration, while preserving strict failures for unsupported shapes and streaming errors.
Start with these discussions
- 【改善建议】Provider-side invalid_tool_call 被归类为 PI_AI_ERROR,缺少有界纠错恢复(0.2.0-rc.2)github · ▲1 · 1 comments
- Add temporary recovery for malformed or truncated DSML/tool callsgithub · ▲1 · 1 comments
- 模型侧内层引号漏转义使 tool_use 参数合法但缺 description:单会话 34 次整轮重试——建议窄范围 schema 引导的参数修复github · ▲1 · 0 comments