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

Function stringField

packages/ai-client/src/devtools.ts:323–329  ·  view source on GitHub ↗
(
  record: UnknownRecord | undefined,
  field: string,
)

Source from the content-addressed store, hash-verified

321}
322
323function stringField(
324 record: UnknownRecord | undefined,
325 field: string,
326): string | undefined {
327 const value = record?.[field]
328 return typeof value === 'string' && value.length > 0 ? value : undefined
329}
330
331function numberField(
332 record: UnknownRecord | undefined,

Callers 4

audioPreviewFromResultFunction · 0.70
textPreviewFromResultFunction · 0.70
videoJobFromStatusFunction · 0.70
mediaItemFromSourceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected