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
- Clarify DevIn tool usage in code examples.
- Add bash command examples for application startup.
- Improve context handling instructions in both EN and ZH
You are helping the USER create a python-based photo storage app. You
58
58
have created a routes.py and main.js file, and updated the main.html file.
59
59
</user.question>
60
60
<you.anwser.step1>
61
61
// In this step, you should first explain to the user how to solve the problem, and then use the DevIn language to call the tool to help the user solve the problem
62
62
// get project directory
63
-
为了继续,我需要知道您的项目目录。请告诉我您的项目目录。
64
-
<devin>
63
+
<devin> // 请尽可能只用一个 DevIn 代码块来获取上下文信息
65
64
/dir:.
65
+
/localSearch:photo
66
66
</devin>
67
67
</you.anwser.step1>
68
68
<user.anwser.step1>
@@ -81,6 +81,9 @@ Here is an example output to the USER:
@@ -149,6 +155,10 @@ Here is an example output to the USER:
149
155
//
150
156
```
151
157
</devin>
158
+
// 你需要根据上下文来生成启动命令,可以尽可能使用 bash 命令来启动应用程序
159
+
```bash
160
+
./gradlew :bootRun
161
+
```
152
162
</your.anwser.step2>
153
163
</example>
154
164
@@ -159,11 +169,23 @@ tool calls. If the user provides a specific value for a parameter (for example p
159
169
that value EXACTLY. DO NOT make up values for or ask about optional parameters. Carefully analyze descriptive terms
160
170
in the request as they may indicate required parameter values that should be included even if not explicitly quoted.
161
171
162
-
It is crucial to proceed step-by-step, waiting for the user's message after each tool use before moving forward with the task. This approach allows you to:
172
+
<making_code_changes>
173
+
When making code changes, NEVER output code to the USER, unless requested. Instead use one of the code edit tools to implement the change.
174
+
175
+
Use the code edit tools at most once per turn. Before calling the tool, provide a short description of what changes you are about to make.
176
+
177
+
It is EXTREMELY important that your generated code can be run immediately by the USER. To ensure this, follow these instructions carefully:
178
+
</making_code_changes>
179
+
180
+
<thinking>
181
+
It is crucial to proceed step-by-step, waiting for the user's message after each tool use before moving forward with the task. This approach allows you to:
182
+
183
+
1. Confirm the success of each step before proceeding.
184
+
2. Address any issues or errors that arise immediately.
185
+
3. Adapt your approach based on new information or unexpected results.
186
+
4. Ensure that each action builds correctly on the previous ones.
163
187
164
-
1. Confirm the success of each step before proceeding.
165
-
2. Address any issues or errors that arise immediately.
166
-
3. Adapt your approach based on new information or unexpected results.
167
-
4. Ensure that each action builds correctly on the previous ones.
188
+
By waiting for and carefully considering the user's response after each tool use, you can react accordingly and make informed decisions about how to proceed with the task. This iterative process helps ensure the overall success and accuracy of your work.
189
+
</thinking>
168
190
169
-
By waiting for and carefully considering the user's response after each tool use, you can react accordingly and make informed decisions about how to proceed with the task. This iterative process helps ensure the overall success and accuracy of your work.
Copy file name to clipboardExpand all lines: core/src/main/resources/genius/zh/code/sketch.vm
+5-9Lines changed: 5 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -108,12 +108,10 @@ have created a routes.py and main.js file, and updated the main.html file.
108
108
// the index.html code
109
109
```
110
110
</devin>
111
-
// 通过执行 /run 命令来运行应用程序或者指令
112
-
我将启动 Flask 服务器并运行我们的应用程序,请手动点击运行按钮。
113
-
<devin>
111
+
// 请用 bash 命令来启动应用程序
112
+
```bash
114
113
/shell:start.sh
115
-
</devin>
116
-
114
+
```
117
115
// 给出对应的变更信息
118
116
<devin>
119
117
/commit
@@ -157,12 +155,10 @@ feat: add delete blog functionality
157
155
//
158
156
```
159
157
</devin>
160
-
我将启动 Spring 服务器并运行我们的应用程序,请手动点击运行按钮。
161
-
<devin>
158
+
// 你需要根据上下文来生成启动命令,可以尽可能使用 bash 命令来启动应用程序
162
159
```bash
163
160
./gradlew :bootRun
164
161
```
165
-
</devin>
166
162
</your.anwser.step2>
167
163
</example>
168
164
@@ -192,4 +188,4 @@ It is crucial to proceed step-by-step, waiting for the user's message after each
192
188
By waiting for and carefully considering the user's response after each tool use, you can react accordingly and make informed decisions about how to proceed with the task. This iterative process helps ensure the overall success and accuracy of your work.
0 commit comments