From f8f706fac6340b0e2ca4fe6c3863f5e78a4ab9d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=98=E6=9D=83=20=E9=A9=AC?= Date: Tue, 9 Apr 2024 17:12:06 +0800 Subject: [PATCH 1/2] feat: revert task instruction --- metagpt/actions/di/write_plan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metagpt/actions/di/write_plan.py b/metagpt/actions/di/write_plan.py index 83709bc1a..bc4fb4e71 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. If the SOP description is provided in the `Knowledge` section, the reference to the SOP description should be included intact in the instruction.", - "task_type": "type of this task, should be one of Available Task Types. You can refer to the hints in the `SOP Type` section to make a selection if `SOP Type` section is provided.", + "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.", }}, ... ] From 3fc851c7446ca7932b4b5f14729259f97e79591d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=98=E6=9D=83=20=E9=A9=AC?= Date: Tue, 9 Apr 2024 17:15:14 +0800 Subject: [PATCH 2/2] feat: revert sop type --- metagpt/actions/di/detect_intent.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/metagpt/actions/di/detect_intent.py b/metagpt/actions/di/detect_intent.py index 5d25e9fbe..d9b587e5c 100644 --- a/metagpt/actions/di/detect_intent.py +++ b/metagpt/actions/di/detect_intent.py @@ -93,13 +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 -{sop_type} """ @@ -120,9 +117,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