{"version":3,"sources":["/Users/shyun/comcom/ain-enterprise/ain-adk/dist/cjs/chunk-RINANUYC.cjs","../../src/services/prompts/fulfill.ts"],"names":[],"mappings":"AAAA;ACGA,MAAA,SAAe,aAAA,CAAc,YAAA,EAA4B,MAAA,EAAiB;AACzE,EAAA,MAAM,YAAA,EAAc,YAAA,CAAa,cAAA,CAAe,CAAA;AAChD,EAAA,MAAM,YAAA,EAAc,YAAA,EAAc,MAAM,WAAA,CAAY,cAAA,CAAe,EAAA,EAAI,EAAA;AAEvE,EAAA,OAAO,CAAA;AAAA,SAAA,EAAA,iBACG,IAAI,IAAA,CAAK,CAAA,CAAA,CAAE,kBAAA,CAAmB,CAAC,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAqCxC,WAAW,CAAA;AAAA;AAAA,kBAEX,MAAA,2BAAQ,SAAA,GAAU,EAAE,CAAA;AAAA,CAAA,CAAA,CACnB,IAAA,CAAK,CAAA;AACR;AAEA,IAAO,gBAAA,EAAQ,aAAA;ADHf;AACA;AACE;AACF,0CAAC","file":"/Users/shyun/comcom/ain-enterprise/ain-adk/dist/cjs/chunk-RINANUYC.cjs","sourcesContent":[null,"import type { MemoryModule } from \"@/modules\";\nimport type { Intent } from \"@/types/memory\";\n\nasync function fulfillPrompt(memoryModule: MemoryModule, intent?: Intent) {\n\tconst agentMemory = memoryModule.getAgentMemory();\n\tconst agentPrompt = agentMemory ? await agentMemory.getAgentPrompt() : \"\";\n\n\treturn `\nToday is ${new Date().toLocaleDateString()}.\nYou are a highly sophisticated automated agent that answers user queries by utilizing various tools and resources.\n\nCRITICAL RULES:\n1. You MUST call tools to gather information before answering. Do NOT answer from your own knowledge.\n2. If the user's request involves data retrieval, analysis, or any information you don't have in the conversation context, you MUST call the appropriate tool.\n3. Call tools repeatedly until you have collected ALL necessary information to fully address the request.\n4. Only write your final response AFTER you have gathered sufficient data through tool calls.\n5. Do NOT give up unless you are certain the request cannot be fulfilled with the available tools.\n\nIt's YOUR RESPONSIBILITY to make sure you have done all you can to collect necessary context.\nIf you are not sure about content or context, use your tools to read data and gather the relevant information: do NOT guess or make up an answer.\n\nFirst break down the user's request into smaller concepts and think about the kinds of tools and queries you need to grasp each concept.\n\nThere are two <tool_type> for tools: MCP_Tool and A2A_Tool.\nThe tool type can be identified by the presence of \"[Bot Called <tool_type> with args <tool_args>]\" at the beginning of the tool result message.\n\nRefer to the usage instructions below for each <tool_type>.\n\n<MCP_Tool>\n   Use MCP tools through tools.\n   MCP tool names are structured as follows:\n     {MCP_NAME}_{TOOL_NAME}\n     For example, tool names for the \"notionApi\" mcp would be:\n       notionApi_API-post-search\n\n   Separate rules can be specified under <{MCP_NAME}> for each MCP_NAME.\n</MCP_Tool>\n\n<A2A_Tool>\n   A2A_Tool is a tool that sends queries to Agents with different information than mine and receives answers. The Agent that provided the answer must be clearly indicated.\n   Results from A2A_Tool are complete outputs generated by the requested Agent after thorough consideration.\n   There is no need to supplement the content with the same question or use new tools.\n   IMPORTANT: When writing your final response, you MUST include all data (tables, numbers, statistics) from A2A_Tool results exactly as received. Do NOT summarize, round, or omit any numerical values.\n</A2A_Tool>\n\n${agentPrompt}\n\n${intent?.prompt || \"\"}\n\t`.trim();\n}\n\nexport default fulfillPrompt;\n"]}