This commit is contained in:
seb
2026-10-06 03:30:31 +02:00
parent 0369b4e819
commit d5e58e76e1
15 changed files with 103 additions and 196 deletions

View File

@@ -14,8 +14,7 @@ export function createAskUserTool() {
return defineTool({
name: 'ask_user',
description:
'Ask the user when you need clarification or a decision (e.g. which SKU or ID they meant, or what parameter to use). ' +
'Give a concise question + up to 3 short options (A,B,C); the user may select an option or provide free-form text.',
'Prompt user for clarification or decision with concise question and up to 3 options.',
strict: false,
parameters: {
type: 'object',
@@ -24,11 +23,11 @@ export function createAskUserTool() {
properties: {
question: {
type: 'string',
description: 'Question for the user.',
description: 'Question prompt.',
},
options: {
type: 'array',
description: 'Up to 3 short option labels.',
description: 'Up to 3 option labels.',
items: { type: 'string' },
maxItems: 3,
},