mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-09-27 04:01:44 +02:00
feat(editor): Support partial executions of tool nodes (#14945)
This commit is contained in:
@@ -318,6 +318,7 @@ describe('LoadNodesAndCredentials', () => {
|
||||
group: ['input'],
|
||||
inputs: [],
|
||||
outputs: ['ai_tool'],
|
||||
usableAsTool: true,
|
||||
properties: [
|
||||
{
|
||||
default: 'A test node',
|
||||
@@ -370,6 +371,7 @@ describe('LoadNodesAndCredentials', () => {
|
||||
inputs: [],
|
||||
outputs: ['ai_tool'],
|
||||
description: 'A test node',
|
||||
usableAsTool: true,
|
||||
properties: [
|
||||
{
|
||||
displayName: 'Description',
|
||||
|
||||
@@ -317,6 +317,8 @@ export class LoadNodesAndCredentials {
|
||||
} as INodeTypeBaseDescription)
|
||||
: deepCopy(usableNode);
|
||||
const wrapped = this.convertNodeToAiTool({ description }).description;
|
||||
// TODO: Remove this when we support partial execution on all tool nodes
|
||||
wrapped.usableAsTool = true;
|
||||
|
||||
this.types.nodes.push(wrapped);
|
||||
this.known.nodes[wrapped.name] = { ...this.known.nodes[usableNode.name] };
|
||||
|
||||
Reference in New Issue
Block a user