0
Fork 0
mirror of https://github.com/TanStack/ai.git synced 2026-11-16 19:38:41 +00:00
ai/docs/reference/functions/isContentPartArray.md
github-actions[bot] 33a91e5619
docs: regenerate API documentation (#847)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-06-25 18:23:45 +02:00

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[]