Open History to see the last commit
1---
2id: isContentPartArray
3title: isContentPartArray
4---
5
6```ts
7function isContentPartArray(value): value is ContentPart[];
8```
9
10Defined in: [packages/ai/src/utilities/tool-result.ts:57](https://github.com/TanStack/ai/blob/main/packages/ai/src/utilities/tool-result.ts#L57)
11
12True iff `value` is a NON-EMPTY array whose every element is a valid
13`ContentPart`. Empty arrays and mixed arrays return false so they continue
14to be treated as ordinary (stringified) data — this keeps the auto-detection
15footgun narrow.
16
17## Parameters
18
19### value
20
21`unknown`
22
23## Returns
24
25`value is ContentPart[]`