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

RealtimeImagePart.md

44 lines986 Bytes

1---
2id: RealtimeImagePart
3title: RealtimeImagePart
4---
5​
6# Interface: RealtimeImagePart
7​
8Defined in: [packages/typescript/ai/src/realtime/types.ts:136](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/realtime/types.ts#L136)
9​
10Image content part in a realtime message
11​
12## Properties
13​
14### data
15​
16```ts
17data: string;
18```
19​
20Defined in: [packages/typescript/ai/src/realtime/types.ts:139](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/realtime/types.ts#L139)
21​
22Base64-encoded image data or a URL
23​
24***
25​
26### mimeType
27​
28```ts
29mimeType: string;
30```
31​
32Defined in: [packages/typescript/ai/src/realtime/types.ts:141](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/realtime/types.ts#L141)
33​
34MIME type of the image (e.g., 'image/png', 'image/jpeg')
35​
36***
37​
38### type
39​
40```ts
41type: "image";
42```
43​
44Defined in: [packages/typescript/ai/src/realtime/types.ts:137](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/realtime/types.ts#L137)