Open History to see the last commit
1---
2id: ContentPartSource
3title: ContentPartSource
4---
5
6# Interface: ContentPartSource
7
8Defined in: [types.ts:105](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L105)
9
10Source specification for multimodal content.
11Supports both inline data (base64) and URL-based content.
12
13## Properties
14
15### type
16
17```ts
18type: "data" | "url";
19```
20
21Defined in: [types.ts:111](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L111)
22
23The type of source:
24- 'data': Inline data (typically base64 encoded)
25- 'url': URL reference to the content
26
27***
28
29### value
30
31```ts
32value: string;
33```
34
35Defined in: [types.ts:117](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L117)
36
37The actual content value:
38- For 'data': base64-encoded string
39- For 'url': HTTP(S) URL or data URI