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

ContentPart

Type Alias: ContentPart<TTextMeta, TImageMeta, TAudioMeta, TVideoMeta, TDocumentMeta>

ts
type ContentPart<TTextMeta, TImageMeta, TAudioMeta, TVideoMeta, TDocumentMeta> = 
  | TextPart<TTextMeta>
  | ImagePart<TImageMeta>
  | AudioPart<TAudioMeta>
  | VideoPart<TVideoMeta>
| DocumentPart<TDocumentMeta>;
type ContentPart<TTextMeta, TImageMeta, TAudioMeta, TVideoMeta, TDocumentMeta> = 
  | TextPart<TTextMeta>
  | ImagePart<TImageMeta>
  | AudioPart<TAudioMeta>
  | VideoPart<TVideoMeta>
| DocumentPart<TDocumentMeta>;

Defined in: packages/ai/src/types.ts:277

Union type for all multimodal content parts.

Type Parameters

TTextMeta

TTextMeta = unknown

TImageMeta

TImageMeta = unknown

Provider-specific image metadata type

TAudioMeta

TAudioMeta = unknown

Provider-specific audio metadata type

TVideoMeta

TVideoMeta = unknown

Provider-specific video metadata type

TDocumentMeta

TDocumentMeta = unknown

Provider-specific document metadata type