MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / makeStateNode

Function makeStateNode

packages/agentflow/src/core/utils/variableUtils.test.ts:8–19  ·  view source on GitHub ↗
(id: string, updates: Array<{ key: string; value: string }>)

Source from the content-addressed store, hash-verified

6
7/** Create a FlowNode with `updateFlowState` inputs for state-related tests. */
8const makeStateNode = (id: string, updates: Array<{ key: string; value: string }>): FlowNode =>
9 ({
10 id,
11 type: 'customNode',
12 position: { x: 0, y: 0 },
13 data: {
14 id,
15 name: id,
16 label: id,
17 inputs: { updateFlowState: updates }
18 }
19 } as unknown as FlowNode)
20
21// ── extractVariables ────────────────────────────────────────────────────────
22

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected