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

Function buildApiOrInputOutput

apps/sim/executor/utils/start-block.ts:464–475  ·  view source on GitHub ↗
(finalInput: unknown, workflowInput: unknown)

Source from the content-addressed store, hash-verified

462}
463
464function buildApiOrInputOutput(finalInput: unknown, workflowInput: unknown): NormalizedBlockOutput {
465 const isObjectInput = isRecordLike(finalInput)
466
467 const output: NormalizedBlockOutput = isObjectInput
468 ? {
469 ...(finalInput as Record<string, unknown>),
470 input: { ...(finalInput as Record<string, unknown>) },
471 }
472 : { input: finalInput }
473
474 return mergeFilesIntoOutput(output, workflowInput)
475}
476
477function buildChatOutput(workflowInput: unknown): NormalizedBlockOutput {
478 const source = isRecordLike(workflowInput) ? workflowInput : undefined

Callers 1

buildStartBlockOutputFunction · 0.85

Calls 2

isRecordLikeFunction · 0.90
mergeFilesIntoOutputFunction · 0.85

Tested by

no test coverage detected