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

ContentPartDataSource

Interface: ContentPartDataSource

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

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/ai/src/types.ts:192

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/ai/src/types.ts:183

Indicates this is inline data content.


value

ts
value: string;
value: string;

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

The base64-encoded content value.