diff --git a/metagpt/actions/di/detect_intent.py b/metagpt/actions/di/detect_intent.py index d7187c4f3..79d49b285 100644 --- a/metagpt/actions/di/detect_intent.py +++ b/metagpt/actions/di/detect_intent.py @@ -93,12 +93,10 @@ Intention index: REQ_WITH_SOP = """ {user_requirement} -### Knowledge +## Knowledge To meet user requirements, the following standard operating procedure(SOP) must be used: {sop} - - """ ### SOP Type @@ -122,9 +120,7 @@ class DetectIntent(Action): req_with_sop = ( REQ_WITH_SOP.format( - user_requirement=user_requirement, - sop="\n".join([f"{i + 1}. {v}" for i, v in enumerate(sop)]), - sop_type=sop_type, + user_requirement=user_requirement, sop="\n".join([f"{i + 1}. {v}" for i, v in enumerate(sop)]) ) if sop else user_requirement diff --git a/metagpt/actions/di/write_plan.py b/metagpt/actions/di/write_plan.py index 201280d9b..04aed7e17 100644 --- a/metagpt/actions/di/write_plan.py +++ b/metagpt/actions/di/write_plan.py @@ -33,8 +33,8 @@ Output a list of jsons following the format: {{ "task_id": str = "unique identifier for a task in plan, can be an ordinal", "dependent_task_ids": list[str] = "ids of tasks prerequisite to this task", - "instruction": "what you should do in this task, one short phrase or sentence", - "task_type": "type of this task, should be one of Available Task Types", + "instruction": "what you should do in this task, one short phrase or sentence.", + "task_type": "type of this task, should be one of Available Task Types.", }}, ... ]