Revert "feat(editor): Change default node names depending on node ope… (#16169)

This commit is contained in:
Charlie Kolb
2025-06-10 11:34:08 +02:00
committed by GitHub
parent 53b6812592
commit d17a15ef9a
21 changed files with 182 additions and 574 deletions

View File

@@ -72,6 +72,7 @@ import {
handleCycles,
filterDisabledNodes,
rewireGraph,
isTool,
getNextExecutionIndex,
} from './partial-execution-utils';
import { TOOL_EXECUTOR_NODE_NAME } from './partial-execution-utils/rewire-graph';
@@ -367,12 +368,8 @@ export class WorkflowExecute {
let graph = DirectedGraph.fromWorkflow(workflow);
const destinationNodeType = workflow.nodeTypes.getByNameAndVersion(
destination.type,
destination.typeVersion,
);
// Partial execution of nodes as tools
if (NodeHelpers.isTool(destinationNodeType.description, destination.parameters)) {
if (isTool(destination, workflow.nodeTypes)) {
graph = rewireGraph(destination, graph, agentRequest);
workflow = graph.toWorkflow({ ...workflow });
// Rewire destination node to the virtual agent