Open History to see the last commit
1---
2id: TextMessageContentEvent
3title: TextMessageContentEvent
4---
5
6# Interface: TextMessageContentEvent
7
8Defined in: [packages/typescript/ai/src/types.ts:968](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L968)
9
10Emitted when text content is generated (streaming tokens).
11
12@ag-ui/core provides: `messageId`, `delta`
13TanStack AI adds: `model?`, `content?` (accumulated)
14
15## Extends
16
17- `TextMessageContentEvent`
18
19## Indexable
20
21```ts
22[k: string]: unknown
23```
24
25## Properties
26
27### content?
28
29```ts
30optional content: string;
31```
32
33Defined in: [packages/typescript/ai/src/types.ts:972](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L972)
34
35Full accumulated content so far (TanStack AI internal, for debugging)
36
37***
38
39### model?
40
41```ts
42optional model: string;
43```
44
45Defined in: [packages/typescript/ai/src/types.ts:970](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L970)
46
47Model identifier for multi-model support