feat(editor): Change default node names depending on node operation and resource (#16188)

This commit is contained in:
Charlie Kolb
2025-06-12 13:57:26 +02:00
committed by GitHub
parent ecd9a1e53e
commit 4e94488622
26 changed files with 646 additions and 197 deletions

View File

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