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

Function createBlock

apps/sim/executor/variables/resolver.test.ts:23–37  ·  view source on GitHub ↗
(id: string, name: string, type: string, params = {})

Source from the content-addressed store, hash-verified

21}))
22
23function createBlock(id: string, name: string, type: string, params = {}): SerializedBlock {
24 return {
25 id,
26 metadata: { id: type, name },
27 position: { x: 0, y: 0 },
28 config: { tool: type, params },
29 inputs: {},
30 outputs: {
31 result: 'string',
32 items: 'json',
33 file: 'file',
34 },
35 enabled: true,
36 }
37}
38
39function createTestManifest(totalCount = 100_000): LargeArrayManifest {
40 return {

Callers 3

createResolverFunction · 0.70
resolver.test.tsFile · 0.70
createOffloadEnvFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected