Skip to content

Commit 535921e

Browse files
committed
0920Update, add Human-Agent-Interaction mode
1 parent 5078d96 commit 535921e

29 files changed

+5953
-94
lines changed

CompanyConfig/Default/PhaseConfig.json

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -175,30 +175,6 @@
175175
"As the {assistant_role}, to satisfy the new user's demand and make the software creative, executive and robust, you should modify corresponding codes according to the comments. Then, output the full and complete codes with all bugs fixed based on the comments. Return all codes strictly following the required format."
176176
]
177177
},
178-
"CodeReviewHuman": {
179-
"assistant_role_name": "Programmer",
180-
"user_role_name": "Code Reviewer",
181-
"phase_prompt": [
182-
"According to the new user's task, our designed product modality and three creative ideas, our developed first-edition source codes are listed below: ",
183-
"Task: \"{task}\".",
184-
"Modality: \"{modality}\".",
185-
"Programming Language: \"{language}\"",
186-
"Ideas: \"{ideas}\"",
187-
"Codes: ",
188-
"\"{codes}\"",
189-
"Comments on Codes:",
190-
"\"{comments}\"",
191-
"In the software, each file must strictly follow a markdown code block format, where the following tokens must be replaced such that \"FILENAME\" is the lowercase file name including the file extension, \"LANGUAGE\" in the programming language, \"DOCSTRING\" is a string literal specified in source code that is used to document a specific segment of code, and \"CODE\" is the original code. Format:",
192-
"FILENAME",
193-
"```LANGUAGE",
194-
"'''",
195-
"DOCSTRING",
196-
"'''",
197-
"CODE",
198-
"```",
199-
"As the {assistant_role}, to satisfy the new user's demand and make the software creative, executive and robust, you should modify corresponding codes according to the comments. Then, output the fixed codes strictly following the required format."
200-
]
201-
},
202178
"TestErrorSummary": {
203179
"assistant_role_name": "Programmer",
204180
"user_role_name": "Software Test Engineer",
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
{
2+
"chain": [
3+
{
4+
"phase": "DemandAnalysis",
5+
"phaseType": "SimplePhase",
6+
"max_turn_step": -1,
7+
"need_reflect": "True"
8+
},
9+
{
10+
"phase": "LanguageChoose",
11+
"phaseType": "SimplePhase",
12+
"max_turn_step": -1,
13+
"need_reflect": "True"
14+
},
15+
{
16+
"phase": "Coding",
17+
"phaseType": "SimplePhase",
18+
"max_turn_step": 1,
19+
"need_reflect": "False"
20+
},
21+
{
22+
"phase": "CodeCompleteAll",
23+
"phaseType": "ComposedPhase",
24+
"cycleNum": 10,
25+
"Composition": [
26+
{
27+
"phase": "CodeComplete",
28+
"phaseType": "SimplePhase",
29+
"max_turn_step": 1,
30+
"need_reflect": "False"
31+
}
32+
]
33+
},
34+
{
35+
"phase": "CodeReview",
36+
"phaseType": "ComposedPhase",
37+
"cycleNum": 3,
38+
"Composition": [
39+
{
40+
"phase": "CodeReviewComment",
41+
"phaseType": "SimplePhase",
42+
"max_turn_step": 1,
43+
"need_reflect": "False"
44+
},
45+
{
46+
"phase": "CodeReviewModification",
47+
"phaseType": "SimplePhase",
48+
"max_turn_step": 1,
49+
"need_reflect": "False"
50+
}
51+
]
52+
},
53+
{
54+
"phase": "HumanAgentInteraction",
55+
"phaseType": "ComposedPhase",
56+
"cycleNum": 5,
57+
"Composition": [
58+
{
59+
"phase": "CodeReviewHuman",
60+
"phaseType": "SimplePhase",
61+
"max_turn_step": 1,
62+
"need_reflect": "False"
63+
}
64+
]
65+
},
66+
{
67+
"phase": "Test",
68+
"phaseType": "ComposedPhase",
69+
"cycleNum": 3,
70+
"Composition": [
71+
{
72+
"phase": "TestErrorSummary",
73+
"phaseType": "SimplePhase",
74+
"max_turn_step": 1,
75+
"need_reflect": "False"
76+
},
77+
{
78+
"phase": "TestModification",
79+
"phaseType": "SimplePhase",
80+
"max_turn_step": 1,
81+
"need_reflect": "False"
82+
}
83+
]
84+
},
85+
{
86+
"phase": "EnvironmentDoc",
87+
"phaseType": "SimplePhase",
88+
"max_turn_step": 1,
89+
"need_reflect": "True"
90+
},
91+
{
92+
"phase": "Manual",
93+
"phaseType": "SimplePhase",
94+
"max_turn_step": 1,
95+
"need_reflect": "False"
96+
}
97+
],
98+
"recruitments": [
99+
"Chief Executive Officer",
100+
"Counselor",
101+
"Chief Human Resource Officer",
102+
"Chief Product Officer",
103+
"Chief Technology Officer",
104+
"Programmer",
105+
"Code Reviewer",
106+
"Software Test Engineer",
107+
"Chief Creative Officer"
108+
],
109+
"clear_structure": "True",
110+
"brainstorming": "False",
111+
"gui_design": "True",
112+
"git_management": "False",
113+
"self_improve": "False"
114+
}

0 commit comments

Comments
 (0)