From 4c97aa52bd5bf128e09c3800819b99b41537877f Mon Sep 17 00:00:00 2001 From: luocq3 Date: Mon, 9 Jun 2025 17:51:59 +0800 Subject: [PATCH] Fix the return parameters of the _parse_commands method --- metagpt/roles/di/role_zero.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metagpt/roles/di/role_zero.py b/metagpt/roles/di/role_zero.py index abb0e7269..eebd0c533 100644 --- a/metagpt/roles/di/role_zero.py +++ b/metagpt/roles/di/role_zero.py @@ -439,7 +439,7 @@ async def _check_duplicates(self, req: list[dict], command_rsp: str, check_windo command_rsp = await self.llm.aask(regenerate_req) return command_rsp - async def _parse_commands(self, command_rsp) -> Tuple[List[Dict], bool]: + async def _parse_commands(self, command_rsp) -> Tuple[List[Dict], bool, str]: """Retrieves commands from the Large Language Model (LLM). This function attempts to retrieve a list of commands from the LLM by