deal with nested BaseModel

This commit is contained in:
better629 2023-12-20 18:55:29 +08:00
parent 15279376d4
commit 6877fa444f
4 changed files with 16 additions and 11 deletions

View file

@ -10,6 +10,7 @@ import pytest
from metagpt.const import SERDESER_PATH
from metagpt.roles import ProjectManager, ProductManager, Architect
from metagpt.team import Team
from metagpt.logs import logger
from tests.metagpt.serialize_deserialize.test_serdeser_base import RoleA, RoleB, RoleC, serdeser_path, ActionOK
@ -120,6 +121,8 @@ async def test_team_recover_multi_roles_save():
company.run_project(idea)
await company.run(n_round=4)
logger.info("Team recovered")
new_company = Team.recover(stg_path)
new_company.run_project(idea)