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

ContentPartSource

Type Alias: ContentPartSource

ts
type ContentPartSource = 
  | ContentPartDataSource
  | ContentPartUrlSource;
type ContentPartSource = 
  | ContentPartDataSource
  | ContentPartUrlSource;

Defined in: packages/typescript/ai/src/types.ts:184

Source specification for multimodal content. Discriminated union supporting both inline data (base64) and URL-based content.

  • For 'data' sources: mimeType is required
  • For 'url' sources: mimeType is optional