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

SummarizationOptions.md

128 lines2.0 KB

1---
2id: SummarizationOptions
3title: SummarizationOptions
4---
5​
6Defined in: packages/ai/src/types.ts:2138
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:2168
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:2145
37​
38***
39​
40### logger
41​
42```ts
43logger: InternalLogger;
44```
45​
46Defined in: packages/ai/src/types.ts:2162
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:2143
60​
61***
62​
63### model
64​
65```ts
66model: string;
67```
68​
69Defined in: packages/ai/src/types.ts:2141
70​
71***
72​
73### modelOptions?
74​
75```ts
76optional modelOptions?: TProviderOptions;
77```
78​
79Defined in: packages/ai/src/types.ts:2147
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:2156
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:2144
109​
110***
111​
112### text
113​
114```ts
115text: string;
116```
117​
118Defined in: packages/ai/src/types.ts:2142
119​
120***
121​
122### threadId
123​
124```ts
125threadId: string;
126```
127​
128Defined in: packages/ai/src/types.ts:2157