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

Function pathConsumesInputFormat

apps/sim/executor/utils/start-block.ts:216–228  ·  view source on GitHub ↗
(
  path: StartBlockPath,
  legacyStarterMode: 'manual' | 'api' | 'chat' | null
)

Source from the content-addressed store, hash-verified

214}
215
216function pathConsumesInputFormat(
217 path: StartBlockPath,
218 legacyStarterMode: 'manual' | 'api' | 'chat' | null
219): boolean {
220 switch (path) {
221 case StartBlockPath.SPLIT_CHAT:
222 return false
223 case StartBlockPath.LEGACY_STARTER:
224 return legacyStarterMode !== 'chat'
225 default:
226 return true
227 }
228}
229
230export function coerceValue(type: string | null | undefined, value: unknown): unknown {
231 if (value === undefined || value === null) {

Callers 1

buildStartBlockOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected