Skip to content

Commit 3bd9877

Browse files
committed
fix: change follow_up type from array to string in ask_followup_question schema
1 parent b91c4b9 commit 3bd9877

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,14 @@ export function generateAskFollowupQuestionSchema(args: ToolArgs): BaseToolSchem
1515
},
1616
{
1717
name: "follow_up",
18-
type: "array",
18+
type: "string",
1919
description: `A list of 2-4 suggested answers that logically follow from the question, ordered by priority or logical sequence. Each suggestion must:
2020
1. Be provided in its own <suggest> tag
2121
2. Be specific, actionable, and directly related to the completed task
2222
3. Be a complete answer to the question - the user should not need to provide additional information or fill in any missing details. DO NOT include placeholders with brackets or parentheses.
2323
4. Optionally include a mode attribute to switch to a specific mode when the suggestion is selected: <suggest mode="mode-slug">suggestion text</suggest>
2424
- When using the mode attribute, focus the suggestion text on the action to be taken rather than mentioning the mode switch, as the mode change is handled automatically and indicated by a visual badge`,
2525
required: true,
26-
items: {
27-
name: "suggest",
28-
type: "string",
29-
description: "A suggested answer for the follow-up question.",
30-
required: true,
31-
},
3226
},
3327
],
3428
systemPropmt: `## ask_followup_question

0 commit comments

Comments
 (0)