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
text: `The user has provided feedback on the results. Consider their input to continue the task, and then attempt completion again.\n<feedback>\n${text}\n</feedback>`,
text: `The user has provided feedback on the results. Consider their input to continue the task, and then attempt completion again.\n<feedback>\n${text}\n</feedback>`,
Description: After each tool use, the user will respond with the result of that tool use, i.e. if it succeeded or failed, along with any reasons for failure. Once you've received the results of tool uses and can confirm that the task is complete, use this tool to present the result of your work to the user. Optionally you may provide a CLI command to showcase the result of your work. The user may respond with feedback if they are not satisfied with the result, which you can use to make improvements and try again.
4
6
IMPORTANT NOTE: This tool CANNOT be used until you've confirmed from the user that any previous tool uses were successful. Failure to do so will result in code corruption and system failure. Before using this tool, you must ask yourself in <thinking></thinking> tags if you've confirmed from the user that any previous tool uses were successful. If not, then DO NOT use this tool.
5
7
Parameters:
6
8
- result: (required) The result of the task. Formulate this result in a way that is final and does not require further input from the user. Don't end your result with questions or offers for further assistance.
7
-
- 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.
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
+
experiments?.["prompt_suggest"]
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.`
14
+
: ``
15
+
}
8
16
Usage:
9
17
<attempt_completion>
10
18
<result>
11
19
Your final result description here
12
-
</result>
20
+
</result>${
21
+
experiments?.["prompt_suggest"]
22
+
? `
23
+
<values>
24
+
<suggest>
25
+
- Suggested prompt or task 1
26
+
</suggest>
27
+
<suggest>
28
+
- Suggested prompt or task 2
29
+
</suggest>
30
+
</values>`
31
+
: ``
32
+
}
13
33
<command>Command to demonstrate result (optional)</command>
14
34
</attempt_completion>
15
35
@@ -19,5 +39,95 @@ Example: Requesting to attempt completion with a result and command
19
39
I've updated the CSS
20
40
</result>
21
41
<command>open index.html</command>
42
+
</attempt_completion>${
43
+
experiments?.["prompt_suggest"]
44
+
? `
45
+
46
+
Example: Completion with suggestions after implementing a feature
47
+
<attempt_completion>
48
+
<result>
49
+
I've implemented the user authentication feature with email and password login
50
+
</result>
51
+
<values>
52
+
<suggest>
53
+
- Add unit tests for the authentication service
54
+
</suggest>
55
+
<suggest>
56
+
- Implement password reset functionality
57
+
</suggest>
58
+
<suggest>
59
+
- Add social login providers (Google, GitHub)
60
+
</suggest>
61
+
<suggest>
62
+
- Update API documentation with auth endpoints
63
+
</suggest>
64
+
</values>
65
+
<command>npm run dev</command>
66
+
</attempt_completion>
67
+
68
+
Example: Completion with suggestions after fixing a bug
69
+
<attempt_completion>
70
+
<result>
71
+
I've fixed the memory leak in the WebSocket connection handling
72
+
</result>
73
+
<values>
74
+
<suggest>
75
+
- Add monitoring for WebSocket connection counts
76
+
</suggest>
77
+
<suggest>
78
+
- Write regression tests to prevent future leaks
79
+
</suggest>
80
+
<suggest>
81
+
- Review other WebSocket usage for similar issues
82
+
</suggest>
83
+
<suggest>
84
+
- Document the fix in CHANGELOG.md
85
+
</suggest>
86
+
</values>
87
+
</attempt_completion>
88
+
89
+
Example: Completion with task split suggestions
90
+
<attempt_completion>
91
+
<result>
92
+
I've completed the initial database schema design
93
+
</result>
94
+
<values>
95
+
<suggest>
96
+
- Split into new task using new_task: Implement database migration system
97
+
</suggest>
98
+
<suggest>
99
+
- Split into new task using new_task: Create data access layer
100
+
</suggest>
101
+
<suggest>
102
+
- Document schema design decisions and constraints
103
+
</suggest>
104
+
<suggest>
105
+
- Review schema for optimization opportunities
106
+
</suggest>
107
+
</values>
108
+
</attempt_completion>
109
+
110
+
Example: Completion with documentation suggestions
111
+
<attempt_completion>
112
+
<result>
113
+
I've created the API endpoints for the user management system
114
+
</result>
115
+
<values>
116
+
<suggest>
117
+
- Create OpenAPI/Swagger documentation
118
+
</suggest>
119
+
<suggest>
120
+
- Write integration tests for all endpoints
121
+
</suggest>
122
+
<suggest>
123
+
- Add rate limiting and security headers
124
+
</suggest>
125
+
<suggest>
126
+
- Split into new task using new_task: Create user management API guide
0 commit comments