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

TextPart.md

44 lines469 Bytes

1---
2id: TextPart
3title: TextPart
4---
5​
6Defined in: packages/ai/src/types.ts:488
7​
8Message parts - building blocks of UIMessage
9​
10## Type Parameters
11​
12### TMetadata
13​
14`TMetadata` = `unknown`
15​
16## Properties
17​
18### content
19​
20```ts
21content: string;
22```
23​
24Defined in: packages/ai/src/types.ts:490
25​
26***
27​
28### metadata?
29​
30```ts
31optional metadata?: TMetadata;
32```
33​
34Defined in: packages/ai/src/types.ts:491
35​
36***
37​
38### type
39​
40```ts
41type: "text";
42```
43​
44Defined in: packages/ai/src/types.ts:489