Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

ContentPartDataSource.md

48 lines1.1 KB

Interface: ContentPartDataSource

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

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

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

Indicates this is inline data content.


value

value: string;

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

The base64-encoded content value.