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

ContentPartDataSource.md

48 lines1.0 KB

1---
2id: ContentPartDataSource
3title: ContentPartDataSource
4---
5​
6# Interface: ContentPartDataSource
7​
8Defined in: [packages/ai/src/types.ts:201](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L201)
9​
10Source specification for inline data content (base64).
11Requires a mimeType to ensure providers receive proper content type information.
12​
13## Properties
14​
15### mimeType
16​
17```ts
18mimeType: string;
19```
20​
21Defined in: [packages/ai/src/types.ts:214](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L214)
22​
23The MIME type of the content (e.g., 'image/png', 'audio/wav').
24Required for data sources to ensure proper handling by providers.
25​
26***
27​
28### type
29​
30```ts
31type: "data";
32```
33​
34Defined in: [packages/ai/src/types.ts:205](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L205)
35​
36Indicates this is inline data content.
37​
38***
39​
40### value
41​
42```ts
43value: string;
44```
45​
46Defined in: [packages/ai/src/types.ts:209](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L209)
47​
48The base64-encoded content value.