mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-27 01:36:29 +02:00
修改teamleader 样例,在发布软件开发指令时,附带对应编程语言。快速问答中添加法律问题。
This commit is contained in:
parent
e11d03fe5b
commit
0a18c3d4f3
3 changed files with 17 additions and 9 deletions
|
|
@ -22,35 +22,41 @@ Requirements:
|
|||
Create 2048 game. Do not write PRD.
|
||||
Outputs:
|
||||
[User Restrictions] : Do not write PRD.
|
||||
[Language Restrictions] : The response must be in the language specified by English.
|
||||
[Language Restrictions] : The response, message and instruction must be in the language specified by English.
|
||||
[Programming Language] : HTML (*.html), CSS (*.css), and JavaScript (*.js)
|
||||
|
||||
Example 2
|
||||
Requirements:
|
||||
创建一个贪吃蛇,只需要给出设计文档和代码
|
||||
Outputs:
|
||||
[User Restrictions] : 只需要给出设计文档和代码.
|
||||
[Language Restrictions] : The response must be in the language specified by Chinese.
|
||||
[Language Restrictions] : The response, message and instruction must be in the language specified by Chinese.
|
||||
[Programming Language] : HTML (*.html), CSS (*.css), and JavaScript (*.js)
|
||||
|
||||
Example 3
|
||||
Requirements:
|
||||
You must ignore create PRD and TRD. Help me write a schedule display program for the Paris Olympics.
|
||||
Outputs:
|
||||
[User Restrictions] : You must ignore create PRD and TRD.
|
||||
[Language Restrictions] : The response must be in the language specified by English.
|
||||
[Language Restrictions] : The response, message and instruction must be in the language specified by English.
|
||||
[Programming Language] : HTML (*.html), CSS (*.css), and JavaScript (*.js)
|
||||
"""
|
||||
|
||||
INSTRUCTIONS = """
|
||||
You must output in the same language as the Requirements.
|
||||
First, This language should be consistent with the language used in the requirement description. determine the natural language you must respond in. The default language is English
|
||||
Second, extract the restrictions in the requirements, specifically the steps. Do not include detailed demand descriptions; focus only on the restrictions.
|
||||
Third, if the requirements is a software development, extract the program language. If If no specific programming language is required, Use HTML (*.html), CSS (*.css), and JavaScript (*.js)
|
||||
|
||||
Note:
|
||||
1. if there is not restrictions, requirements_restrictions must be ""
|
||||
2. if the requirements is a not software development, programming language must be ""
|
||||
"""
|
||||
|
||||
OUTPUT_FORMAT = """
|
||||
[User Restrictions] : the restrictions in the requirements
|
||||
[Language Restrictions] : The response must be in the language specified by {{language}}
|
||||
[Language Restrictions] : The response, message and instruction must be in the language specified by {{language}}
|
||||
[Programming Language] : Your program must use ...
|
||||
"""
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue