mirror of
https://github.com/TanStack/ai.git
synced 2026-11-16 19:38:41 +00:00
623 B
623 B
| id | title |
|---|---|
| isContentPartArray | isContentPartArray |
Function: isContentPartArray()
function isContentPartArray(value): value is ContentPart[];
Defined in: packages/ai/src/utilities/tool-result.ts:42
True iff value is a NON-EMPTY array whose every element is a valid
ContentPart. Empty arrays and mixed arrays return false so they continue
to be treated as ordinary (stringified) data — this keeps the auto-detection
footgun narrow.
Parameters
value
unknown
Returns
value is ContentPart[]