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: src/core/prompts/tools/attempt-completion.ts
+20-30Lines changed: 20 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,7 @@ Parameters:
9
9
- command: (optional) A CLI command to execute to show a live demo of the result to the user. For example, use \`open index.html\` to display a created html website, or \`open localhost:3000\` to display a locally running development server. But DO NOT use commands like \`echo\` or \`cat\` that merely print text. This command should be valid for the current operating system. Ensure the command is properly formatted and does not contain any harmful instructions.${
10
10
experiments?.["prompt_suggest"]
11
11
? `
12
-
- values: (optional) A list of suggested prompt/task/question for user as XML elements. The order of suggestion is important, the order of suggestion is the same with the order that show to user.. Each suggested can have these elements:
13
-
* suggest: A suggestion to display to the user. Each suggestion must be provided in its own <suggest> tag. Each suggestion can be multiple line.`
12
+
- values: (optional) A list of suggested tasks in the format "create new task for [task description] by using new_task tool". Each suggestion must be provided in its own <suggest> tag. The order of suggestions is important as they will be shown to the user in the same order.`
14
13
: ``
15
14
}
16
15
Usage:
@@ -22,10 +21,10 @@ Your final result description here
22
21
? `
23
22
<values>
24
23
<suggest>
25
-
- Suggested prompt or task 1
24
+
- Suggested new task 1
26
25
</suggest>
27
26
<suggest>
28
-
- Suggested prompt or task 2
27
+
- Suggested new task 2
29
28
</suggest>
30
29
</values>`
31
30
: ``
@@ -43,50 +42,44 @@ I've updated the CSS
43
42
experiments?.["prompt_suggest"]
44
43
? `
45
44
46
-
Example: Completion with suggestions after implementing a feature
45
+
Example: Completion with new task suggestions
47
46
<attempt_completion>
48
47
<result>
49
-
I've implemented the user authentication feature with email and password login
48
+
I've implemented the user authentication feature
50
49
</result>
51
50
<values>
52
51
<suggest>
53
-
- Add unit tests for the authentication service
52
+
- create new task for authentication service tests by using new_task tool
54
53
</suggest>
55
54
<suggest>
56
-
- Implement password reset functionality
55
+
- create new task for password reset functionality by using new_task tool
57
56
</suggest>
58
57
<suggest>
59
-
- Add social login providers (Google, GitHub)
60
-
</suggest>
61
-
<suggest>
62
-
- Update API documentation with auth endpoints
58
+
- create new task for social login integration by using new_task tool
63
59
</suggest>
64
60
</values>
65
61
<command>npm run dev</command>
66
62
</attempt_completion>
67
63
68
-
Example: Completion with suggestions after fixing a bug
64
+
Example: Completion with new task suggestions
69
65
<attempt_completion>
70
66
<result>
71
-
I've fixed the memory leak in the WebSocket connection handling
67
+
I've fixed the memory leak
72
68
</result>
73
69
<values>
74
70
<suggest>
75
-
- Add monitoring for WebSocket connection counts
76
-
</suggest>
77
-
<suggest>
78
-
- Write regression tests to prevent future leaks
71
+
- create new task for performance monitoring system by using new_task tool
79
72
</suggest>
80
73
<suggest>
81
-
- Review other WebSocket usage for similar issues
74
+
- create new task for regression test suite by using new_task tool
82
75
</suggest>
83
76
<suggest>
84
-
- Document the fix in CHANGELOG.md
77
+
- create new task for error tracking by using new_task tool
0 commit comments