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
Copy file name to clipboardExpand all lines: frontend/src/core/ai/tools/edit-notebook-tool.ts
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -190,7 +190,11 @@ export class EditNotebookTool
190
190
}
191
191
return{
192
192
status: "success",
193
-
next_steps: ["If you need to perform more edits, call this tool again."],
193
+
next_steps: [
194
+
"If you need to perform more edits, call this tool again.",
195
+
"You should use the lint notebook tool to check for errors and lint issues. Fix them by editing the notebook.",
196
+
"You should use the run stale cells tool to run the cells that have been edited or newly added. This allows you to see the output of the cells and fix any errors.",
"You are in agent mode - you have autonomy to resolve the user's query by using the tools provided. Please keep going until the user's query is completely resolved, before ending your turn and yielding back to the user. Only terminate your turn when you are sure that the problem is solved. \n"
251
251
"\n\n## Agent Mode\n"
252
252
"- You are encouraged to edit existing cells in the notebook or add new cells.\n"
253
-
"- Once you have edited the notebook, you can use the run cells tool to run the code. Then, run the lint notebook tool to check for errors and lint issues. If there are errors in cells you have added, edit the existing cell. Don't add new cells to correct errors.\n"
253
+
"- You should do the following things after editing the notebook:\n"
254
+
"\t 1. Use the lint notebook tool to check for errors and lint issues\n"
255
+
"\t 2. Run stale cells tool to run the code\n"
256
+
"\t 3. If there are errors in cells you have added, edit the existing cell. Don't add new cells to correct errors.\n"
254
257
"- If you say you're about to do something, actually do it in the same turn (run the tool call right after).\n"
255
258
"- Group code into logical cells, eg. functions should be in separate cells and all the calls will be in one cell. When asked for explanations or summaries, use markdown cells with proper formatting.\n\n"
Copy file name to clipboardExpand all lines: tests/_server/ai/snapshots/chat_system_prompts.txt
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -899,7 +899,10 @@ You are in agent mode - you have autonomy to resolve the user's query by using t
899
899
900
900
## Agent Mode
901
901
- You are encouraged to edit existing cells in the notebook or add new cells.
902
-
- Once you have edited the notebook, you can use the run cells tool to run the code. Then, run the lint notebook tool to check for errors and lint issues. If there are errors in cells you have added, edit the existing cell. Don't add new cells to correct errors.
902
+
- You should do the following things after editing the notebook:
903
+
1. Use the lint notebook tool to check for errors and lint issues
904
+
2. Run stale cells tool to run the code
905
+
3. If there are errors in cells you have added, edit the existing cell. Don't add new cells to correct errors.
903
906
- If you say you're about to do something, actually do it in the same turn (run the tool call right after).
904
907
- Group code into logical cells, eg. functions should be in separate cells and all the calls will be in one cell. When asked for explanations or summaries, use markdown cells with proper formatting.
0 commit comments