MCPcopy
hub / github.com/simstudioai/sim / firstRecord

Function firstRecord

apps/sim/app/api/tools/image/route.ts:451–453  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

449}
450
451function firstRecord(value: unknown): Record<string, unknown> | undefined {
452 return Array.isArray(value) ? value.find(isRecordLike) : undefined
453}
454
455function pickAllowed(
456 value: string | undefined,

Callers 3

generateWithOpenAIFunction · 0.85
generateWithGeminiFunction · 0.85
generateWithFalAIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected