diff --git a/metagpt/roles/di/role_zero.py b/metagpt/roles/di/role_zero.py index 0209079b9..4810ddb3a 100644 --- a/metagpt/roles/di/role_zero.py +++ b/metagpt/roles/di/role_zero.py @@ -297,6 +297,10 @@ class RoleZero(Role): self.llm.format_msg(memory), system_msgs=[QUICK_RESPONSE_SYSTEM_PROMPT.format(role_info=self._get_prefix())], ) + if "command_name" in answer: + # an actual TASK intent misclassified as QUICK, correct it here + answer = "" + intent_result = "TASK" elif "SEARCH" in intent_result: query = "\n".join(str(msg) for msg in memory) answer = await SearchEnhancedQA().run(query)