fix(agent): 修复输出协议重试与流式显示(develop) - #4023
Merged
Merged
Conversation
(cherry picked from commit e38fd50)
JasonW404
requested review from
Dallas98,
Jasonxia007,
WMC001,
YehongPan,
hhhhsc701 and
jeffwu-1999
as code owners
September 28, 2026 08:00
WMC001
approved these changes
Sep 28, 2026
WMC001
approved these changes
Sep 28, 2026
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修改内容
code_actionAgent 增加可配置的严格协议与重试路径。开启时,动作生成请求加入请求专用的格式提醒;裸文本先作为思考步骤续跑,格式不合规则有限重试。重试耗尽后,符合兜底条件的最后一次可见输出作为最终答案处理。final_answer_envelope路径保持原有行为。验证结果
e61520855面向develop。GitHub Actions 全量 UT:18,467 通过,0 失败;类型检查、代码分析及镜像构建检查均通过。develop前的实机验证记录,供模型行为对照;它们不表示当前提交重新执行了表中全部模型测试。关闭态的“首轮”表示旧链路完成,不代表严格协议格式合规;CSV 中的
legacy_direct记录了其中的裸文本次数。开启态的“首轮”表示通过代码动作解析并得到最终答案。每个完整会话包含三条连续用户请求。