Merge pull request #651 from better629/dev

Feat fix test_role
This commit is contained in:
geekan 2023-12-29 11:08:25 +08:00 committed by GitHub
commit b9f778bf3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,8 @@ from metagpt.utils.common import any_to_str
class MockAction(Action):
async def run(self, messages, *args, **kwargs):
assert messages
return ActionOutput(content=messages[-1].content, instruct_content=messages[-1])
# TODO to check instruct_content as Message
return ActionOutput(content=messages[-1].content, instruct_content=messages[-1].instruct_content)
class MockRole(Role):