You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_system="""Here gives a LLM system field, and a user query field, you need to extract the code file information of it, and wraps the final result in <result></result>.
24
+
_system="""You are a file name parser, I will give a user query field to you, you need to extract the code file name from it, and wraps the final result in <result></result>.
25
+
Always remember your task is not generating the code, but parse the file name from the query.
22
26
Here shows an example:
23
-
system is: You are a code engineer, you should help me to write a code file, which is a part of a complex job. The rules you need to follow are: ...
24
27
query is: You should write the index.js file, the file you need to use is main.css and nav.js, the interface in the code is ...
25
28
26
29
Your answer should be: <result>index.js</result>
27
30
"""
28
-
_query= (f'The input system is: {messages[0].content}\n\n'
29
-
f'The input query is: {messages[1].content}\n\n'
30
-
'Now give the code file name:\n')
31
+
_query= (f'The input query is: {messages[1].content}\n\n'
32
+
'Now give the code file name and wraps with <result></result>:\n')
You are a senior software architect. Your responsibility is to break down original requirements into implementable modules and assign tasks for each module into subtasks. The initiation of subtasks requires calling the `split_complex_task` tool, which can start all sub tasks as you need at one time. In this process, you need to answer the following questions:
18
+
You are a senior software architect. Your responsibility is to break down original requirements into implementable modules and assign tasks for each module into subtasks. The initiation of subtasks requires calling the `split_to_sub_task` tool, which can start all sub tasks as you need at one time. In this process, you need to answer the following questions:
20
19
21
20
1. What is the original requirement? Does it involve frontend or backend code? What programming language is needed?
22
21
2. How many modules should it be split into? What are the interfaces for each module?
@@ -33,6 +32,7 @@ prompt:
33
32
3. The site will display specific categories, each category can showcase different product showcases
34
33
4. Products can be clicked to purchase or favorite, so I need to design a complete favorites functionality
35
34
5. Due to the complexity of the code engineering, I cannot complete this complex goal in a single file, so I need to split the tasks, which task should in charge of one single code file.
35
+
6. I should give a very detail design of the page functions and file locations, in case the sub tasks work abnormally
36
36
...
37
37
38
38
The subtasks I need to split are:
@@ -51,11 +51,11 @@ prompt:
51
51
You should **DO A TOOL CALLING** with multi sub tasks information, here shows example of tool args:
52
52
[
53
53
{
54
-
"system": "You are a software engineer which helps me to finish a part of my job. You need to follow these instructions: 1. ... 2. ...",
54
+
"system": "You are a software engineer which helps me to finish a part of my job. You need to follow these instructions: 1. You should generate code by yourself, do not call `split_to_sub_task` anymore.\n 2. Do not give fake image addresses 3. You should keep the page as beautiful as you can 4. DO not add ``` around the code, wrap the code with <code></code> 5. Detail function and interface requirements here... 6. ...",
55
55
"query": "The original query is to write an e-commerce website with Christmas atmosphere your part of job is the index.html page, the interface design should be: 1. ... 2. ..."
56
56
},
57
57
{
58
-
"system": "You are a software engineer which helps me to finish a part of my job. You need to follow these instructions: 1. ... 2. ...",
58
+
"system": "You are a software engineer which helps me to finish a part of my job. You need to follow these instructions: 1. You should generate code by yourself, do not call `split_to_sub_task` anymore.\n 2. Do not give fake image addresses 4. DO not add ``` around the code, wrap the code with <code></code> 5. Detail function and interface requirements here... 6. ...",
59
59
"query": "The original query is to write an e-commerce website with Christmas atmosphere your part of job is the index.js code file, the interface design should be: 1. ... 2. ..."
0 commit comments