Skip to content

Commit 55da7b4

Browse files
hannesrudolphMerge Resolver
authored andcommitted
Update ask-followup-question.ts
Simplify ask_followup_question tool documentation - Condensed description and parameters to remove redundant explanations - Reduced from 2 verbose examples to 1 concise example - Streamlined usage format to show inline suggest tags - Maintained all critical requirements (complete answers, no placeholders, mode switching) - Reduced overall documentation size by ~60% while preserving clarity
1 parent 5dde951 commit 55da7b4

File tree

1 file changed

+6
-35
lines changed

1 file changed

+6
-35
lines changed

src/core/prompts/tools/ask-followup-question.ts

Lines changed: 6 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,53 +4,24 @@ Description: Ask the user a question to gather additional information needed to
44
55
Parameters:
66
- question: (required) A clear, specific question addressing the information needed
7-
- follow_up: (required) A list of 2-4 suggested answers, each in its own <suggest> tag with nested <content> element. Suggestions must be complete, actionable answers without placeholders. Optionally include <mode> element to switch modes (code/architect/etc.)
7+
- follow_up: (required) A list of 2-4 suggested answers, each in its own <suggest> tag. Suggestions must be complete, actionable answers without placeholders. Optionally include <mode> to switch modes (code/architect/etc.)
88
99
Usage:
1010
<ask_followup_question>
1111
<question>Your question here</question>
1212
<follow_up>
13-
<suggest>
14-
<content>Your suggested answer here</content>
15-
</suggest>
16-
<suggest>
17-
<mode>code</mode>
18-
<content>Implement the solution</content>
19-
</suggest>
13+
<suggest><content>First suggestion</content></suggest>
14+
<suggest><mode>code</mode><content>Action with mode switch</content></suggest>
2015
</follow_up>
2116
</ask_followup_question>
2217
2318
Example:
2419
<ask_followup_question>
2520
<question>What is the path to the frontend-config.json file?</question>
2621
<follow_up>
27-
<suggest>
28-
<content>./src/frontend-config.json</content>
29-
</suggest>
30-
<suggest>
31-
<content>./config/frontend-config.json</content>
32-
</suggest>
33-
<suggest>
34-
<content>./frontend-config.json</content>
35-
</suggest>
36-
</follow_up>
37-
</ask_followup_question>
38-
39-
Example: Asking a question with mode switching options
40-
<ask_followup_question>
41-
<question>How would you like to proceed with this task?</question>
42-
<follow_up>
43-
<suggest>
44-
<mode>code</mode>
45-
<content>Start implementing the solution</content>
46-
</suggest>
47-
<suggest>
48-
<mode>architect</mode>
49-
<content>Plan the architecture first</content>
50-
</suggest>
51-
<suggest>
52-
<content>Continue with more details</content>
53-
</suggest>
22+
<suggest><content>./src/frontend-config.json</content></suggest>
23+
<suggest><content>./config/frontend-config.json</content></suggest>
24+
<suggest><content>./frontend-config.json</content></suggest>
5425
</follow_up>
5526
</ask_followup_question>`
5627
}

0 commit comments

Comments
 (0)