mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-26 01:06:27 +02:00
general planner, code interpreter
This commit is contained in:
parent
fe6e46d478
commit
db4e3343f1
13 changed files with 338 additions and 311 deletions
|
|
@ -46,7 +46,7 @@ def save_history(role: Role, save_dir: str = ""):
|
|||
# overwrite exist trajectory
|
||||
save_path.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
plan = role.plan.dict()
|
||||
plan = role.planner.plan.dict()
|
||||
|
||||
with open(save_path / "plan.json", "w", encoding="utf-8") as plan_file:
|
||||
json.dump(plan, plan_file, indent=4, ensure_ascii=False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue