mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-07-02 16:01:04 +02:00
Action developer add chest_memory & .run test pass
This commit is contained in:
parent
3a705a0e89
commit
73cd368828
8 changed files with 84 additions and 49 deletions
|
|
@ -32,11 +32,11 @@ class GenerateActionCode(Action):
|
|||
logger.error(f"Failed to parse response: {parsed_result}")
|
||||
return None
|
||||
|
||||
async def run(self, msg, *args, **kwargs):
|
||||
async def run(self, human_msg, system_msg, *args, **kwargs):
|
||||
logger.info(f"run {self.__repr__()}")
|
||||
# Generate action code.
|
||||
generated_code = await self.generate_code(
|
||||
human_msg=msg['human_msg'], system_msg=msg['system_msg']
|
||||
human_msg=human_msg, system_msg=system_msg
|
||||
)
|
||||
|
||||
# Return the generated code.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue