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

Function hasResponseFormatSelection

apps/sim/lib/core/utils/response-format.ts:170–175  ·  view source on GitHub ↗
(selectedOutputs: string[], blockId: string)

Source from the content-addressed store, hash-verified

168 * Check if a set of output IDs contains response format selections for a specific block
169 */
170export function hasResponseFormatSelection(selectedOutputs: string[], blockId: string): boolean {
171 return selectedOutputs.some((outputId) => {
172 const blockIdForOutput = extractBlockIdFromOutputId(outputId)
173 return blockIdForOutput === blockId && outputId.includes('_')
174 })
175}
176
177/**
178 * Get selected field names for a specific block from output IDs

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected