Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/20260817061700-ask-user-recommended-option.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@truefoundry/trueforge-core': patch
---

Instruct ask_user_question to mark a first option as (Recommended) when context clearly favors one.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export class AskUserQuestion extends ClientSideTool {
'- The user picks exactly one option — multi-select is not available.',
'- Options must be mutually exclusive. If a valid choice is a combination of other options, include it as a separate option with the combined data.',
'- Every option must commit the user to a specific outcome. Do not add an option whose purpose is to let the user describe, specify, or type their own answer. Do not add an option like "Other" or "Something else".',
'- If you have enough context to confidently recommend one option, put it first with the exact suffix " (Recommended)" — no other wording. If no option clearly stands out, mark nothing.',
'',
'Example (distinct options):',
'question: "<your question>"',
Expand All @@ -46,6 +47,10 @@ export class AskUserQuestion extends ClientSideTool {
'question: "<your question>"',
'options: ["<Option A>", "<Option B>", "<Option A and B — combined details>"]',
'',
'Example (context clearly favors A):',
'question: "<your question>"',
'options: ["<Option A> (Recommended)", "<Option B>", "<Option C>"]',
Comment thread
cursor[bot] marked this conversation as resolved.
'',
'Avoid:',
'options: ["<Option A>", "<Option B>", "Other"]',
].join('\n'),
Expand Down
Loading