0
Fork 0
mirror of https://github.com/TanStack/ai.git synced 2026-11-16 19:38:41 +00:00
ai/docs/reference/interfaces/ContentPartDataSource.md
github-actions[bot] f4f32bdcc2
docs: regenerate API documentation (#1195)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-08-22 08:16:20 +00:00

1 KiB

id title
ContentPartDataSource ContentPartDataSource

Interface: ContentPartDataSource

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

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

Properties

mimeType

mimeType: string;

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

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


type

type: "data";

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

Indicates this is inline data content.


value

value: string;

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

The base64-encoded content value.