* Generate a clarification prompt to inject into the system message. * Tells the model to ask ONE question and then immediately start working * based on its best interpretation — do not wait for confirmation.
()
| 52 | * based on its best interpretation — do not wait for confirmation. |
| 53 | */ |
| 54 | function getClarificationInstruction() { |
| 55 | return `The user's message is vague or very short. Do the following in a SINGLE response: |
| 56 | 1. State what you THINK they want (your best interpretation, one sentence) |
| 57 | 2. Ask ONE specific clarifying question |
| 58 | 3. IMMEDIATELY start executing based on your best interpretation — do not wait for confirmation. Use tools now. |
| 59 | |
| 60 | You get exactly one question. Then you work. The user can correct you mid-task if needed.`; |
| 61 | } |
| 62 | |
| 63 | module.exports = { needsClarification, getClarificationInstruction }; |