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

ContentPartDataSource

Interface: ContentPartDataSource

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

Source specification for inline data content (base64). Requires a mimeType to ensure providers receive proper content type information.

Properties

mimeType

ts
mimeType: string;
mimeType: string;

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

The MIME type of the content (e.g., 'image/png', 'audio/wav'). Required for data sources to ensure proper handling by providers.


type

ts
type: "data";
type: "data";

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

Indicates this is inline data content.


value

ts
value: string;
value: string;

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

The base64-encoded content value.