mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-03 12:52:37 +02:00
commit
b9f778bf3e
1 changed files with 2 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue