feat(editor): Support partial executions of tool nodes (#14945)

This commit is contained in:
Benjamin Schroth
2025-05-01 08:32:47 +02:00
committed by GitHub
parent 5fa41bd73a
commit 54dcdedece
21 changed files with 1132 additions and 22 deletions
@@ -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] };