mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-10 08:12:38 +02:00
Merge branch 'fixbug/plan' of https://gitlab.deepwisdomai.com/pub/MetaGPT into fixbug/plan
This commit is contained in:
commit
90c1d7c35e
2 changed files with 4 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.",
|
||||
}},
|
||||
...
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue