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

Method connect

packages/testing/src/builders/workflow.builder.ts:213–222  ·  view source on GitHub ↗

* Creates an edge connecting two blocks.

(sourceId: string, targetId: string, sourceHandle?: string, targetHandle?: string)

Source from the content-addressed store, hash-verified

211 * Creates an edge connecting two blocks.
212 */
213 connect(sourceId: string, targetId: string, sourceHandle?: string, targetHandle?: string): this {
214 this.edges.push({
215 id: `${sourceId}-${targetId}`,
216 source: sourceId,
217 target: targetId,
218 sourceHandle,
219 targetHandle,
220 })
221 return this
222 }
223
224 /**
225 * Adds a workflow variable.

Callers 5

chainMethod · 0.95
linearMethod · 0.95
branchingMethod · 0.45
withLoopMethod · 0.45
withParallelMethod · 0.45

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected