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

ChatResult.md

32 lines726 Bytes

1---
2id: ChatResult
3title: ChatResult
4---
5​
6Defined in: [packages/ai/src/stream-to-response.ts:33](https://github.com/TanStack/ai/blob/main/packages/ai/src/stream-to-response.ts#L33)
7​
8The result of a run that was read to the end, such as `chat({ stream: false })`.
9​
10## Properties
11​
12### chunks
13​
14```ts
15chunks: AGUIEvent[];
16```
17​
18Defined in: [packages/ai/src/stream-to-response.ts:37](https://github.com/TanStack/ai/blob/main/packages/ai/src/stream-to-response.ts#L37)
19​
20Every chunk the run produced, in order.
21​
22***
23​
24### text
25​
26```ts
27text: string;
28```
29​
30Defined in: [packages/ai/src/stream-to-response.ts:35](https://github.com/TanStack/ai/blob/main/packages/ai/src/stream-to-response.ts#L35)
31​
32Concatenated TEXT_MESSAGE_CONTENT deltas.