Open History to see the last commit
1---
2id: TextCompactOptions
3title: TextCompactOptions
4---
5
6Defined in: packages/ai/src/types.ts:1530
7
8What `TextAdapter.compact` receives.
9
10## Properties
11
12### messages
13
14```ts
15messages: ModelMessage<
16 | string
17 | ContentPart<unknown, unknown, unknown, unknown, unknown>[]
18 | null>[];
19```
20
21Defined in: packages/ai/src/types.ts:1532
22
23The history to compact.
24
25***
26
27### model
28
29```ts
30model: string;
31```
32
33Defined in: packages/ai/src/types.ts:1533
34
35***
36
37### signal?
38
39```ts
40optional signal?: AbortSignal;
41```
42
43Defined in: packages/ai/src/types.ts:1534
44
45***
46
47### systemPrompts?
48
49```ts
50optional systemPrompts?: SystemPrompt[];
51```
52
53Defined in: packages/ai/src/types.ts:1538
54
55The system prompts of the chat call.
56
57***
58
59### wrapFetch?
60
61```ts
62optional wrapFetch?: FetchWrapper;
63```
64
65Defined in: packages/ai/src/types.ts:1536
66
67Wraps the fetch of the compaction request.