MCPcopy
hub / github.com/simstudioai/sim / createFunctionBlock

Function createFunctionBlock

packages/testing/src/factories/block.factory.ts:103–109  ·  view source on GitHub ↗
(options: Omit<BlockFactoryOptions, 'type'> = {})

Source from the content-addressed store, hash-verified

101 * Creates a function block (code execution).
102 */
103export function createFunctionBlock(options: Omit<BlockFactoryOptions, 'type'> = {}): any {
104 return createBlock({
105 ...options,
106 type: 'function',
107 name: options.name ?? 'Function',
108 })
109}
110
111/**
112 * Creates a condition block (branching logic).

Callers 6

createLinearWorkflowFunction · 0.90
createBranchingWorkflowFunction · 0.90
createLoopWorkflowFunction · 0.90
createParallelWorkflowFunction · 0.90
addFunctionMethod · 0.90
utils.test.tsFile · 0.90

Calls 1

createBlockFunction · 0.70

Tested by

no test coverage detected