{"version":3,"file":"askClarification.mjs","names":["OpenAiToolDefinition","ASK_CLARIFICATION_TOOL_NAME","buildAskClarificationTool","type","function","name","description","parameters","additionalProperties","properties","question","required"],"sources":["../../src/aiAssistant/askClarification.ts"],"sourcesContent":["import type { OpenAiToolDefinition } from './openai';\n\nexport const ASK_CLARIFICATION_TOOL_NAME = 'ask_clarification';\n\n/** Explicit-clarification tool — far more reliable than free text on small models. */\nexport const buildAskClarificationTool = (): OpenAiToolDefinition => ({\n  type: 'function',\n  function: {\n    name: ASK_CLARIFICATION_TOOL_NAME,\n    description:\n      'Ask the user a clarifying question when the request is ambiguous, references fields or values you cannot map to the schema, or needs an ID you do not have.',\n    parameters: {\n      type: 'object',\n      additionalProperties: false,\n      properties: {\n        question: {\n          type: 'string',\n          description: 'The question to ask the user.'\n        }\n      },\n      required: ['question']\n    }\n  }\n});\n"],"mappings":";AAEA,MAAaC,8BAA8B;;AAG3C,MAAaC,mCAAyD;CACpEC,MAAM;CACNC,UAAU;EACRC,MAAMJ;EACNK,aACE;EACFC,YAAY;GACVJ,MAAM;GACNK,sBAAsB;GACtBC,YAAY,EACVC,UAAU;IACRP,MAAM;IACNG,aAAa;IACf,EACD;GACDK,UAAU,CAAC,WAAU;GACvB;EACF;CACD"}