Skip to content

fix(miniMaster2.0): 添加 Generator 循环最大迭代限制并完善依赖声明#3

Merged
funnamer merged 1 commit intodatawhalechina:mainfrom
XiaoMa-PM:main
Apr 15, 2026
Merged

fix(miniMaster2.0): 添加 Generator 循环最大迭代限制并完善依赖声明#3
funnamer merged 1 commit intodatawhalechina:mainfrom
XiaoMa-PM:main

Conversation

@XiaoMa-PM
Copy link
Copy Markdown
Contributor

  1. main_agent.py: 添加 max_gen_iter=20 限制 Generator 单任务最大迭代次数

    • 防止 Validator 持续拒绝时 Generator 进入无限重试循环
    • 达到上限后强制标记任务为 DONE 并返回 Plan-Agent
  2. requirements.txt: 补充缺失的第三方依赖

    • 添加 openai>=1.0.0
    • 添加 langsmith>=0.1.0

1. main_agent.py: 添加 max_gen_iter=20 限制 Generator 单任务最大迭代次数
   - 防止 Validator 持续拒绝时 Generator 进入无限重试循环
   - 达到上限后强制标记任务为 DONE 并返回 Plan-Agent

2. requirements.txt: 补充缺失的第三方依赖
   - 添加 openai>=1.0.0
   - 添加 langsmith>=0.1.0

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@funnamer funnamer merged commit 7497381 into datawhalechina:main Apr 15, 2026
@funnamer
Copy link
Copy Markdown
Collaborator

感谢反馈

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