Open History to see the last commit
1---
2id: TextPart
3title: TextPart
4---
5
6# Interface: TextPart\<TMetadata\>
7
8Defined in: [packages/typescript/ai/src/types.ts:329](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L329)
9
10Message parts - building blocks of UIMessage
11
12## Type Parameters
13
14### TMetadata
15
16`TMetadata` = `unknown`
17
18## Properties
19
20### content
21
22```ts
23content: string;
24```
25
26Defined in: [packages/typescript/ai/src/types.ts:331](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L331)
27
28***
29
30### metadata?
31
32```ts
33optional metadata: TMetadata;
34```
35
36Defined in: [packages/typescript/ai/src/types.ts:332](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L332)
37
38***
39
40### type
41
42```ts
43type: "text";
44```
45
46Defined in: [packages/typescript/ai/src/types.ts:330](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L330)