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

Function readStringArray

examples/ts-react-native-chat/src/server/app.ts:156–161  ·  view source on GitHub ↗
(value: unknown, key: string)

Source from the content-addressed store, hash-verified

154}
155
156function readStringArray(value: unknown, key: string): Array<string> {
157 if (!isRecord(value)) return []
158 const field = value[key]
159 if (!Array.isArray(field)) return []
160 return field.filter((item): item is string => typeof item === 'string')
161}
162
163const getPantrySnapshot = toolDefinition({
164 name: 'getPantrySnapshot',

Callers 1

app.tsFile · 0.85

Calls 1

isRecordFunction · 0.70

Tested by

no test coverage detected