mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-11 15:15:18 +02:00
feat: revert sop type
This commit is contained in:
parent
f8f706fac6
commit
3fc851c744
1 changed files with 2 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue