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

Function createBlock

apps/sim/executor/execution/block-executor.test.ts:29–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}))
28
29function createBlock(): SerializedBlock {
30 return {
31 id: 'function-block-1',
32 metadata: { id: BlockType.FUNCTION, name: 'Function' },
33 position: { x: 0, y: 0 },
34 config: { tool: BlockType.FUNCTION, params: {} },
35 inputs: {},
36 outputs: {},
37 enabled: true,
38 }
39}
40
41function createContext(state: ExecutionState): ExecutionContext {
42 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected