Skip to content

fix: harden tool call validation and continuation - #92

Merged
ruibaby merged 1 commit into
mainfrom
fix/harden-tool-call-continuation
Jul 27, 2026
Merged

fix: harden tool call validation and continuation#92
ruibaby merged 1 commit into
mainfrom
fix/harden-tool-call-continuation

Conversation

@LIlGG

@LIlGG LIlGG commented Jul 27, 2026

Copy link
Copy Markdown
Member

What this PR does / why we need it:

  • 修复工具执行失败或参数无效时,下一轮模型请求中的工具调用与工具响应不完整或错配的问题。
  • 显式保留工具参数 JSON 解析错误,避免将格式错误误报为缺少 Schema 必填字段。
  • 确保成功、失败和无效工具调用都能形成完整且唯一的消息配对。
  • 根据 Provider capability 传递 OpenAI-compatible 原生 strict 设置,并在不支持时保留本地校验和降级警告。

Does this PR introduce a user-facing change?

修复工具调用失败或参数无效时续传中断,以及原始错误原因被后续协议错误覆盖的问题。

@ruibaby
ruibaby merged commit 0523c10 into main Jul 27, 2026
1 check passed
@ruibaby
ruibaby deleted the fix/harden-tool-call-continuation branch July 27, 2026 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants