Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Class References
Function References
Interface References
Type Alias References
Variable References

isContentPartArray

Function: isContentPartArray()

ts
function isContentPartArray(value): value is ContentPart[];
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[]