{"version":3,"sources":["../../../src/agents/toolCalling/prompts.ts"],"names":["ToolCallingAgentSystemPrompt","PromptTemplate","schema","z","object","role","string","instructions","optional","functions","formatDate","Date","toISOString","defaults","template","ToolCallingAgentTaskPrompt","prompt","context","expectedOutput"],"mappings":";;;;;;;AAQO,MAAMA,4BAAAA,GAA+B,IAAIC,2BAAAA,CAAe;AAC7DC,EAAAA,MAAAA,EAAQC,MAAEC,MAAAA,CAAO;AACfC,IAAAA,IAAAA,EAAMF,MAAEG,MAAAA,EAAM;IACdC,YAAAA,EAAcJ,KAAAA,CAAEG,MAAAA,EAAM,CAAGE,QAAAA;GAC3B,CAAA;EACAC,SAAAA,EAAW;AACTC,IAAAA,UAAAA,kBAAY,MAAA,CAAA,WAAA;AACV,MAAA,OAAA,iBAAO,IAAIC,IAAAA,EAAAA,EAAOC,WAAAA,EAAW;IAC/B,CAAA,EAFY,YAAA;AAGd,GAAA;EACAC,QAAAA,EAAU;IAAER,IAAAA,EAAM,wBAAA;IAA0BE,YAAAA,EAAc;AAAG,GAAA;EAC7DO,QAAAA,EAAU,CAAA;;;;;;;;;;;;;;;;;;;;AAoBZ,CAAA;AAEO,MAAMC,0BAAAA,GAA6B,IAAId,2BAAAA,CAAe;AAC3DC,EAAAA,MAAAA,EAAQC,MAAEC,MAAAA,CAAO;AACfY,IAAAA,MAAAA,EAAQb,MAAEG,MAAAA,EAAM;IAChBW,OAAAA,EAASd,KAAAA,CAAEG,MAAAA,EAAM,CAAGE,QAAAA,EAAQ;IAC5BU,cAAAA,EAAgBf,KAAAA,CAAEG,MAAAA,EAAM,CAAGE,QAAAA;GAC7B,CAAA;EACAM,QAAAA,EAAU,CAAA;;;;;;;;;;;AAWZ,CAAA","file":"prompts.cjs","sourcesContent":["/**\n * Copyright 2025 © BeeAI a Series of LF Projects, LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { PromptTemplate } from \"@/template.js\";\nimport { z } from \"zod\";\n\nexport const ToolCallingAgentSystemPrompt = new PromptTemplate({\n  schema: z.object({\n    role: z.string(),\n    instructions: z.string().optional(),\n  }),\n  functions: {\n    formatDate: function () {\n      return new Date().toISOString();\n    },\n  },\n  defaults: { role: \"A helpful AI assistant\", instructions: \"\" },\n  template: `Assume the role of {{role}}.\n{{#instructions}}\n\nYour instructions are:\n{{.}}\n{{/instructions}}\n\nWhen the user sends a message, figure out a solution and provide a final answer to the user by calling the 'final_answer' tool.\nBefore you call the 'final_answer' tool, ensure that you have gathered sufficient evidence to support the final answer.\n\n# Best practices\n- Use markdown syntax to format code snippets, links, JSON, tables, images, and files.\n- If the provided task is unclear, ask the user for clarification.\n- Do not refer to tools or tool outputs by name when responding.\n- Do not call the same tool twice with the similar inputs.\n\n# Date and Time\nThe current date and time is: {{formatDate}}\nYou do not need a tool to get the current Date and Time. Use the information available here.\n`,\n});\n\nexport const ToolCallingAgentTaskPrompt = new PromptTemplate({\n  schema: z.object({\n    prompt: z.string(),\n    context: z.string().optional(),\n    expectedOutput: z.string().optional(),\n  }),\n  template: `{{#context}}This is the context that you are working with:\n{{.}}\n\n{{/context}}\n{{#expectedOutput}}\nThis is the expected criteria for your output:\n{{.}}\n\n{{/expectedOutput}}\nYour task: {{prompt}}\n`,\n});\n"]}