UNPKG

@n8n/n8n-nodes-langchain

Version:

![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)

139 lines 4.74 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.versionDescription = void 0; const n8n_workflow_1 = require("n8n-workflow"); const ai_utilities_1 = require("@n8n/ai-utilities"); exports.versionDescription = { displayName: 'Call n8n Workflow Tool', name: 'toolWorkflow', group: ['transform'], description: 'Uses another n8n workflow as a tool. Allows packaging any n8n node(s) as a tool.', defaults: { name: 'Call n8n Workflow Tool', }, version: [2, 2.1, 2.2], inputs: [], outputs: [n8n_workflow_1.NodeConnectionTypes.AiTool], outputNames: ['Tool'], properties: [ (0, ai_utilities_1.getConnectionHintNoticeField)([n8n_workflow_1.NodeConnectionTypes.AiAgent]), { displayName: 'See an example of a workflow to suggest meeting slots using AI <a href="/templates/1953" target="_blank">here</a>.', name: 'noticeTemplateExample', type: 'notice', default: '', }, { displayName: 'Name', name: 'name', type: 'string', default: '', placeholder: 'e.g. My_Color_Tool', validateType: 'string-alphanumeric', description: 'The name of the function to be called, could contain letters, numbers, and underscores only', displayOptions: { show: { '@version': [{ _cnd: { lte: 2.1 } }], }, }, }, { displayName: 'Description', name: 'description', type: 'string', default: '', placeholder: 'Call this tool to get a random color. The input should be a string with comma separated names of colors to exclude.', typeOptions: { rows: 3, }, }, { displayName: 'This tool will call the workflow you define below, and look in the last node for the response. The workflow needs to start with an Execute Workflow trigger', name: 'executeNotice', type: 'notice', default: '', }, { displayName: 'Source', name: 'source', type: 'options', options: [ { name: 'Database', value: 'database', description: 'Load the workflow from the database by ID', }, { name: 'Define Below', value: 'parameter', description: 'Pass the JSON code of a workflow', }, ], default: 'database', description: 'Where to get the workflow to execute from', }, { displayName: 'Workflow', name: 'workflowId', type: 'workflowSelector', displayOptions: { show: { source: ['database'], }, }, default: '', required: true, }, { displayName: 'Workflow Inputs', name: 'workflowInputs', type: 'resourceMapper', noDataExpression: true, default: { mappingMode: 'defineBelow', value: null, }, required: true, typeOptions: { loadOptionsDependsOn: ['workflowId.value'], resourceMapper: { localResourceMapperMethod: 'loadSubWorkflowInputs', valuesLabel: 'Workflow Inputs', mode: 'map', fieldWords: { singular: 'workflow input', plural: 'workflow inputs', }, addAllFields: true, multiKeyMatch: false, supportAutoMap: false, }, }, displayOptions: { show: { source: ['database'], }, hide: { workflowId: [''], }, }, }, { displayName: 'Workflow JSON', name: 'workflowJson', type: 'json', typeOptions: { rows: 10, }, displayOptions: { show: { source: ['parameter'], }, }, default: '\n\n\n\n\n\n\n\n\n', required: true, description: 'The workflow JSON code to execute', }, ], }; //# sourceMappingURL=versionDescription.js.map