UNPKG

n8n

Version:

n8n Workflow Automation Tool

20 lines (18 loc) 1.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.retrieveServicePromptTemplate = void 0; const prompts_1 = require("@langchain/core/prompts"); exports.retrieveServicePromptTemplate = new prompts_1.ChatPromptTemplate({ promptMessages: [ prompts_1.SystemMessagePromptTemplate.fromTemplate(`Based on the list of available service APIs in the CSV, please return the \`id\` of the CSV entry that is most relevant for the user provided request. List Available service APIs in the following CSV Format: \`id\` | \`title\` | \`description\` \`\`\`csv {services} \`\`\` IMPORTANT: Return the \`id\` of the service exactly as found in the CSV. If none of the services match perfectly, always return the \`id\` as empty string, NEVER hallucinate a service that is not on this list.`), prompts_1.HumanMessagePromptTemplate.fromTemplate(`Service API name: {serviceName} Service API Request: {serviceRequest}`), ], inputVariables: ['services', 'serviceName', 'serviceRequest'], }); //# sourceMappingURL=retrieveService.js.map