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

Function resolveInputKind

apps/sim/lib/workflows/triggers/run-options.ts:197–206  ·  view source on GitHub ↗
(path: StartBlockPath, block: TriggerBlockLike)

Source from the content-addressed store, hash-verified

195}
196
197function resolveInputKind(path: StartBlockPath, block: TriggerBlockLike): TriggerInputKind {
198 if (path === StartBlockPath.SPLIT_CHAT) return 'chat'
199 if (path === StartBlockPath.LEGACY_STARTER) {
200 return getLegacyStarterMode(block) === 'chat' ? 'chat' : 'fields'
201 }
202 if (path === StartBlockPath.EXTERNAL_TRIGGER) {
203 return block.type === 'schedule' ? 'none' : 'event_payload'
204 }
205 return 'fields'
206}
207
208function buildTriggerRunOption(
209 candidate: StartBlockCandidate<TriggerBlockLike>,

Callers 1

buildTriggerRunOptionFunction · 0.85

Calls 1

getLegacyStarterModeFunction · 0.90

Tested by

no test coverage detected