🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
fixbug: type error
莘权 马4455b298fcaf
diff --git a/metagpt/actions/di/detect_intent.py b/metagpt/actions/di/detect_intent.pyindex a09541cf6..9109c01bb 100644--- a/metagpt/actions/di/detect_intent.py+++ b/metagpt/actions/di/detect_intent.py@@ -91,8 +91,7 @@ You should follow the following Standard Operating Procedure:class DetectIntent(Action):async def run(self, with_message: Message, **kwargs) -> Tuple[str, str]:- ref_content = with_message.content.replace("\n", "\n> ")- user_requirement = f"> {with_message.role}: {ref_content}"+ user_requirement = with_message.contentintentions = "\n".join([f"{si.type_name}: {si.value.description}" for si in SOPItem])prompt = DETECT_PROMPT.format(user_requirement=user_requirement, intentions=intentions)