MCPcopy Create free account
hub / github.com/TanStack/ai / asRecord

Function asRecord

packages/ai-client/src/devtools.ts:316–321  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

314}
315
316function asRecord(value: unknown): UnknownRecord | undefined {
317 if (!value || typeof value !== 'object' || Array.isArray(value)) {
318 return undefined
319 }
320 return value as UnknownRecord
321}
322
323function stringField(
324 record: UnknownRecord | undefined,

Callers 5

imagePreviewFromResultFunction · 0.70
audioPreviewFromResultFunction · 0.70
videoPreviewFromResultFunction · 0.70
textPreviewFromResultFunction · 0.70
mediaItemFromSourceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected