Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

just use deserialize instead of recover

better6290543c0f76b18
diff --git a/metagpt/startup.py b/metagpt/startup.py
index 5a3e482a4..59e0cb199 100644
--- a/metagpt/startup.py
+++ b/metagpt/startup.py
@@ -67,7 +67,7 @@ def startup(
if not stg_path.exists() or not str(stg_path).endswith("team"):
raise FileNotFoundError(f"{recover_path} not exists or not endswith `team`")
- company = Team.recover(stg_path=stg_path)
+ company = Team.deserialize(stg_path=stg_path)
idea = company.idea # use original idea
company.invest(investment)
diff --git a/tests/metagpt/serialize_deserialize/test_team.py b/tests/metagpt/serialize_deserialize/test_team.py
index d6a477b0e..db6001325 100644
--- a/tests/metagpt/serialize_deserialize/test_team.py
+++ b/tests/metagpt/serialize_deserialize/test_team.py
@@ -89,7 +89,7 @@ async def test_team_recover_save():
company.run_project(idea)
await company.run(n_round=4)
- new_company = Team.recover(stg_path)
+ new_company = Team.deserialize(stg_path)
new_role_c = new_company.env.get_role(role_c.profile)
# assert new_role_c._rc.memory == role_c._rc.memory
assert new_role_c._rc.env != role_c._rc.env
@@ -123,7 +123,7 @@ async def test_team_recover_multi_roles_save():
logger.info("Team recovered")
- new_company = Team.recover(stg_path)
+ new_company = Team.deserialize(stg_path)
new_company.run_project(idea)
assert new_company.env.get_role(role_b.profile)._rc.state == 1