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

ContentPartDataSource.md

48 lines1.0 KB

Interface: ContentPartDataSource

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

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:214

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:205

Indicates this is inline data content.


value

value: string;

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

The base64-encoded content value.