MCPcopy Index your code
hub / github.com/simstudioai/sim / createDagNode

Function createDagNode

apps/sim/executor/orchestrators/parallel.test.ts:44–60  ·  view source on GitHub ↗
(id: string, metadata: DAGNode['metadata'] = {})

Source from the content-addressed store, hash-verified

42}
43
44function createDagNode(id: string, metadata: DAGNode['metadata'] = {}): DAGNode {
45 return {
46 id,
47 block: {
48 id,
49 position: { x: 0, y: 0 },
50 config: { tool: '', params: {} },
51 inputs: {},
52 outputs: {},
53 metadata: { id: 'function', name: id },
54 enabled: true,
55 },
56 incomingEdges: new Set(),
57 outgoingEdges: new Map(),
58 metadata,
59 }
60}
61
62function createState(): BlockStateWriter {
63 return {

Callers 1

parallel.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected