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

Function getLegacyStarterOutputs

apps/sim/lib/workflows/blocks/block-outputs.ts:194–213  ·  view source on GitHub ↗
(
  subBlocks: Record<string, SubBlockWithValue> | undefined
)

Source from the content-addressed store, hash-verified

192}
193
194function getLegacyStarterOutputs(
195 subBlocks: Record<string, SubBlockWithValue> | undefined
196): OutputDefinition {
197 const startWorkflowValue = subBlocks?.startWorkflow?.value
198
199 if (startWorkflowValue === 'chat') {
200 return { ...CHAT_OUTPUTS }
201 }
202
203 if (
204 startWorkflowValue === 'api' ||
205 startWorkflowValue === 'run' ||
206 startWorkflowValue === 'manual'
207 ) {
208 const normalizedInputFormat = normalizeInputFormatValue(subBlocks?.inputFormat?.value)
209 return applyInputFormatFields(normalizedInputFormat, {})
210 }
211
212 return {}
213}
214
215function shouldClearBaseOutputs(
216 blockType: string,

Callers 1

getBlockOutputsFunction · 0.85

Calls 2

applyInputFormatFieldsFunction · 0.85

Tested by

no test coverage detected