Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

fixbug: type error

莘权 马b91905ce581d
diff --git a/metagpt/roles/di/mgx.py b/metagpt/roles/di/mgx.py
index 90e88303e..0034dfe93 100644
--- a/metagpt/roles/di/mgx.py
+++ b/metagpt/roles/di/mgx.py
@@ -14,7 +14,7 @@ class MGX(DataInterpreter):
use_intent: bool = True
intents: Dict = {}
- async def _detect_intent(self, user_msg: Message = None, **kwargs):
+ async def _detect_intent(self, user_msg: Message, **kwargs):
todo = DetectIntent(context=self.context)
request_with_sop, sop_type = await todo.run(user_msg)
logger.info(f"{sop_type} {request_with_sop}")