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

TextPart.md

46 lines780 Bytes

1---
2id: TextPart
3title: TextPart
4---
5​
6# Interface: TextPart\<TMetadata\>
7​
8Defined in: [types.ts:239](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L239)
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: [types.ts:241](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L241)
27​
28***
29​
30### metadata?
31​
32```ts
33optional metadata: TMetadata;
34```
35​
36Defined in: [types.ts:242](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L242)
37​
38***
39​
40### type
41​
42```ts
43type: "text";
44```
45​
46Defined in: [types.ts:240](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L240)