Open History to see the last commit
1---
2id: TextMessageEndEvent
3title: TextMessageEndEvent
4---
5
6# Interface: TextMessageEndEvent
7
8Defined in: [packages/typescript/ai/src/types.ts:981](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L981)
9
10Emitted when a text message completes.
11
12@ag-ui/core provides: `messageId`
13TanStack AI adds: `model?`
14
15## Extends
16
17- `TextMessageEndEvent`
18
19## Indexable
20
21```ts
22[k: string]: unknown
23```
24
25## Properties
26
27### model?
28
29```ts
30optional model: string;
31```
32
33Defined in: [packages/typescript/ai/src/types.ts:983](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L983)
34
35Model identifier for multi-model support