Open History to see the last commit
1---
2id: SummarizationOptions
3title: SummarizationOptions
4---
5
6Defined in: [packages/ai/src/types.ts:1827](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L1827)
7
8## Type Parameters
9
10### TProviderOptions
11
12`TProviderOptions` *extends* `object` = `Record`\<`string`, `unknown`\>
13
14## Properties
15
16### abortSignal?
17
18```ts
19optional abortSignal?: AbortSignal;
20```
21
22Defined in: [packages/ai/src/types.ts:1857](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L1857)
23
24Effective abort signal composed by the activity from caller `abortSignal`
25and/or `timeout`. Adapters should forward this to the provider SDK when
26supported. Request-specific — never store on a global client config.
27
28***
29
30### focus?
31
32```ts
33optional focus?: string[];
34```
35
36Defined in: [packages/ai/src/types.ts:1834](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L1834)
37
38***
39
40### logger
41
42```ts
43logger: InternalLogger;
44```
45
46Defined in: [packages/ai/src/types.ts:1851](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L1851)
47
48Internal logger threaded from the summarize() entry point. Adapters must
49call logger.request() before the SDK call and logger.errors() in catch blocks.
50
51***
52
53### maxLength?
54
55```ts
56optional maxLength?: number;
57```
58
59Defined in: [packages/ai/src/types.ts:1832](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L1832)
60
61***
62
63### model
64
65```ts
66model: string;
67```
68
69Defined in: [packages/ai/src/types.ts:1830](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L1830)
70
71***
72
73### modelOptions?
74
75```ts
76optional modelOptions?: TProviderOptions;
77```
78
79Defined in: [packages/ai/src/types.ts:1836](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L1836)
80
81Provider-specific options forwarded by the summarize() activity.
82
83***
84
85### runId?
86
87```ts
88optional runId?: string;
89```
90
91Defined in: [packages/ai/src/types.ts:1845](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L1845)
92
93Run identity forwarded from the summarize() activity. When set, the
94streaming adapter stamps it onto the emitted `RUN_STARTED` (via the wrapped
95chat), so a delivery-durable route keys the run's log by the same id the
96client rejoins with — making a mid-run reload resumable, like the media
97activities. Optional and non-breaking: adapters that ignore it just mint
98their own.
99
100***
101
102### style?
103
104```ts
105optional style?: "bullet-points" | "paragraph" | "concise";
106```
107
108Defined in: [packages/ai/src/types.ts:1833](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L1833)
109
110***
111
112### text
113
114```ts
115text: string;
116```
117
118Defined in: [packages/ai/src/types.ts:1831](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L1831)
119
120***
121
122### threadId?
123
124```ts
125optional threadId?: string;
126```
127
128Defined in: [packages/ai/src/types.ts:1846](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L1846)