mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
add setupAsTool to node types
This commit is contained in:
parent
a0acfec14c
commit
b42eb67177
|
@ -60,6 +60,8 @@ export class NodeTypes implements INodeTypes {
|
|||
}) as INodeTypeDescription;
|
||||
const clonedNode = Object.create(versionedNodeType, {
|
||||
description: { value: clonedDescription },
|
||||
// todo why do we need this here?
|
||||
setupAsTool: versionedNodeType.setupAsTool,
|
||||
}) as INodeType;
|
||||
const tool = this.loadNodesAndCredentials.convertNodeToAiTool(clonedNode);
|
||||
loadedNodes[nodeType + 'Tool'] = { sourcePath: '', type: tool };
|
||||
|
|
Loading…
Reference in a new issue