fix bug: update finish state in role init

fix bug: update finish state when new round start
fix bug: update CriticReviewer status in run_step()
fix bug: update ga.runtime_status when failed
update: add extra yaml load utils
This commit is contained in:
stellahsr 2023-10-07 20:01:15 +08:00
parent 84cb2fa3db
commit 168bd3b57b
10 changed files with 50 additions and 13 deletions

View file

@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
# @Date : 2023/10/7 16:32
# @Author : stellahong (stellahong@fuzhi.ai)
# @Desc :
import yaml
from metagpt.const import PROJECT_ROOT
def load_extra_conf(yaml_file=PROJECT_ROOT / "config/add_config.yaml"):
with open(yaml_file, "r", encoding="utf-8") as file:
yaml_data = yaml.safe_load(file)
return yaml_data