feat(core): Implement partial execution for all tool nodes (#15168)

This commit is contained in:
Benjamin Schroth
2025-05-12 12:31:17 +02:00
committed by GitHub
parent d12c7ee87f
commit 8b467e3f56
39 changed files with 1129 additions and 279 deletions

View File

@@ -4323,7 +4323,7 @@ describe('NodeHelpers', () => {
expected: true,
},
{
description: 'Should return false for node with only AiTool output and not a trigger',
description: 'Should return true for node with only AiTool output and not a trigger',
node: {
id: 'aiToolOutputNodeId',
name: 'AiToolOutputNode',
@@ -4343,10 +4343,10 @@ describe('NodeHelpers', () => {
outputs: [NodeConnectionTypes.AiTool], // Only AiTool output, no Main
properties: [],
},
expected: false,
expected: true,
},
{
description: 'Should return false for node with dynamic outputs set to AiTool only',
description: 'Should return true for node with dynamic outputs set to AiTool only',
node: {
id: 'dynamicAiToolNodeId',
name: 'DynamicAiToolNode',
@@ -4366,7 +4366,7 @@ describe('NodeHelpers', () => {
outputs: '={{["ai_tool"]}}', // Dynamic expression that resolves to AiTool only
properties: [],
},
expected: false,
expected: true,
mockReturnValue: [NodeConnectionTypes.AiTool],
},
];