add setupAsTool to node types

This commit is contained in:
Mutasem Aldmour 2024-12-18 12:37:51 +01:00
parent a0acfec14c
commit b42eb67177
No known key found for this signature in database
GPG key ID: 3DFA8122BB7FD6B8

View file

@ -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 };