Skip to content

Commit 4a943d6

Browse files
docs: regenerate API documentation (#540)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 7205937 commit 4a943d6

81 files changed

Lines changed: 401 additions & 343 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/reference/classes/StreamProcessor.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: StreamProcessor
55

66
# Class: StreamProcessor
77

8-
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:128](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L128)
8+
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:132](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L132)
99

1010
StreamProcessor - State machine for processing AI response streams
1111

@@ -32,7 +32,7 @@ State tracking:
3232
new StreamProcessor(options): StreamProcessor;
3333
```
3434

35-
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:155](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L155)
35+
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:160](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L160)
3636

3737
#### Parameters
3838

@@ -52,7 +52,7 @@ Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:155]
5252
addToolApprovalResponse(approvalId, approved): void;
5353
```
5454

55-
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:313](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L313)
55+
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:318](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L318)
5656

5757
Add an approval response (called by client after handling onApprovalRequest)
5858

@@ -81,7 +81,7 @@ addToolResult(
8181
error?): void;
8282
```
8383
84-
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:269](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L269)
84+
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:274](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L274)
8585
8686
Add a tool result (called by client after handling onToolCall)
8787
@@ -111,7 +111,7 @@ Add a tool result (called by client after handling onToolCall)
111111
addUserMessage(content, id?): UIMessage;
112112
```
113113
114-
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:202](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L202)
114+
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:207](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L207)
115115
116116
Add a user message to the conversation.
117117
Supports both simple string content and multimodal content arrays.
@@ -160,7 +160,7 @@ processor.addUserMessage('Hello!', 'custom-id-123')
160160
areAllToolsComplete(): boolean;
161161
```
162162
163-
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:344](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L344)
163+
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:349](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L349)
164164
165165
Check if all tool calls in the last assistant message are complete
166166
Useful for auto-continue logic
@@ -177,7 +177,7 @@ Useful for auto-continue logic
177177
clearMessages(): void;
178178
```
179179
180-
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:388](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L388)
180+
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:393](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L393)
181181
182182
Clear all messages
183183
@@ -193,7 +193,7 @@ Clear all messages
193193
finalizeStream(): void;
194194
```
195195
196-
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:1444](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L1444)
196+
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:1562](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L1562)
197197
198198
Finalize the stream — complete all pending operations.
199199
@@ -217,7 +217,7 @@ docs/chat-architecture.md#single-shot-text-response — Finalization step
217217
getCurrentAssistantMessageId(): string | null;
218218
```
219219
220-
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:253](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L253)
220+
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:258](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L258)
221221
222222
Get the current assistant message ID (if one has been created).
223223
Returns null if prepareAssistantMessage() was called but no content
@@ -235,7 +235,7 @@ has arrived yet.
235235
getMessages(): UIMessage[];
236236
```
237237
238-
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:336](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L336)
238+
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:341](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L341)
239239
240240
Get current messages
241241
@@ -251,7 +251,7 @@ Get current messages
251251
getRecording(): ChunkRecording | null;
252252
```
253253
254-
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:1576](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L1576)
254+
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:1698](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L1698)
255255
256256
Get the current recording
257257
@@ -267,7 +267,7 @@ Get the current recording
267267
getState(): ProcessorState;
268268
```
269269
270-
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:1535](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L1535)
270+
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:1655](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L1655)
271271
272272
Get current processor state (aggregated across all messages)
273273
@@ -283,7 +283,7 @@ Get current processor state (aggregated across all messages)
283283
prepareAssistantMessage(): void;
284284
```
285285
286-
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:232](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L232)
286+
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:237](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L237)
287287
288288
Prepare for a new assistant message stream.
289289
Does NOT create the message immediately -- the message is created lazily
@@ -303,7 +303,7 @@ auto-continuation produces no content.
303303
process(stream): Promise<ProcessorResult>;
304304
```
305305
306-
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:404](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L404)
306+
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:409](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L409)
307307
308308
Process a stream and emit events through handlers
309309
@@ -325,7 +325,7 @@ Process a stream and emit events through handlers
325325
processChunk(chunk): void;
326326
```
327327
328-
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:438](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L438)
328+
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:443](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L443)
329329
330330
Process a single chunk from the stream.
331331
@@ -355,7 +355,7 @@ docs/chat-architecture.md#adapter-contract — Expected event types and ordering
355355
removeMessagesAfter(index): void;
356356
```
357357
358-
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:380](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L380)
358+
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:385](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L385)
359359
360360
Remove messages after a certain index (for reload/retry)
361361
@@ -377,7 +377,7 @@ Remove messages after a certain index (for reload/retry)
377377
reset(): void;
378378
```
379379
380-
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:1598](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L1598)
380+
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:1721](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L1721)
381381
382382
Full reset (including messages)
383383
@@ -393,7 +393,7 @@ Full reset (including messages)
393393
setMessages(messages): void;
394394
```
395395
396-
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:174](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L174)
396+
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:179](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L179)
397397
398398
Set the messages array (e.g., from persisted state)
399399
@@ -415,7 +415,7 @@ Set the messages array (e.g., from persisted state)
415415
startAssistantMessage(messageId?): string;
416416
```
417417
418-
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:241](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L241)
418+
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:246](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L246)
419419
420420
#### Parameters
421421
@@ -440,7 +440,7 @@ an assistant message which can cause empty message flicker.
440440
startRecording(): void;
441441
```
442442
443-
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:1563](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L1563)
443+
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:1685](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L1685)
444444
445445
Start recording chunks
446446
@@ -459,7 +459,7 @@ toModelMessages(): ModelMessage<
459459
| null>[];
460460
```
461461
462-
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:325](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L325)
462+
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:330](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L330)
463463
464464
Get the conversation as ModelMessages (for sending to LLM)
465465
@@ -478,7 +478,7 @@ Get the conversation as ModelMessages (for sending to LLM)
478478
static replay(recording, options?): Promise<ProcessorResult>;
479479
```
480480
481-
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:1617](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L1617)
481+
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:1740](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L1740)
482482
483483
Replay a recording through the processor
484484

docs/reference/classes/ToolCallManager.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ readonly [`Tool`](../interfaces/Tool.md)\<[`SchemaInput`](../type-aliases/Schema
6969
addToolCallArgsEvent(event): void;
7070
```
7171

72-
Defined in: [packages/typescript/ai/src/activities/chat/tools/tool-calls.ts:113](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/tools/tool-calls.ts#L113)
72+
Defined in: [packages/typescript/ai/src/activities/chat/tools/tool-calls.ts:115](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/tools/tool-calls.ts#L115)
7373

7474
Add a TOOL_CALL_ARGS event to accumulate arguments (AG-UI)
7575

@@ -113,7 +113,7 @@ Add a TOOL_CALL_START event to begin tracking a tool call (AG-UI)
113113
clear(): void;
114114
```
115115

116-
Defined in: [packages/typescript/ai/src/activities/chat/tools/tool-calls.ts:262](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/tools/tool-calls.ts#L262)
116+
Defined in: [packages/typescript/ai/src/activities/chat/tools/tool-calls.ts:264](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/tools/tool-calls.ts#L264)
117117

118118
Clear the tool calls map for the next iteration
119119

@@ -129,7 +129,7 @@ Clear the tool calls map for the next iteration
129129
completeToolCall(event): void;
130130
```
131131

132-
Defined in: [packages/typescript/ai/src/activities/chat/tools/tool-calls.ts:127](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/tools/tool-calls.ts#L127)
132+
Defined in: [packages/typescript/ai/src/activities/chat/tools/tool-calls.ts:129](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/tools/tool-calls.ts#L129)
133133

134134
Complete a tool call with its final input
135135
Called when TOOL_CALL_END is received
@@ -155,7 +155,7 @@ executeTools(finishEvent): AsyncGenerator<ToolCallEndEvent, ModelMessage<
155155
| null>[], void>;
156156
```
157157

158-
Defined in: [packages/typescript/ai/src/activities/chat/tools/tool-calls.ts:162](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/tools/tool-calls.ts#L162)
158+
Defined in: [packages/typescript/ai/src/activities/chat/tools/tool-calls.ts:164](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/tools/tool-calls.ts#L164)
159159

160160
Execute all tool calls and return tool result messages
161161
Yields TOOL_CALL_END events for streaming
@@ -183,7 +183,7 @@ RUN_FINISHED event from the stream
183183
getToolCalls(): ToolCall[];
184184
```
185185

186-
Defined in: [packages/typescript/ai/src/activities/chat/tools/tool-calls.ts:151](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/tools/tool-calls.ts#L151)
186+
Defined in: [packages/typescript/ai/src/activities/chat/tools/tool-calls.ts:153](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/tools/tool-calls.ts#L153)
187187

188188
Get all complete tool calls (filtered for valid ID and name)
189189

@@ -199,7 +199,7 @@ Get all complete tool calls (filtered for valid ID and name)
199199
hasToolCalls(): boolean;
200200
```
201201

202-
Defined in: [packages/typescript/ai/src/activities/chat/tools/tool-calls.ts:144](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/tools/tool-calls.ts#L144)
202+
Defined in: [packages/typescript/ai/src/activities/chat/tools/tool-calls.ts:146](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/tools/tool-calls.ts#L146)
203203

204204
Check if there are any complete tool calls to execute
205205

docs/reference/functions/chat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: chat
99
function chat<TAdapter, TSchema, TStream>(options): TextActivityResult<TSchema, TStream>;
1010
```
1111

12-
Defined in: [packages/typescript/ai/src/activities/chat/index.ts:1512](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/index.ts#L1512)
12+
Defined in: [packages/typescript/ai/src/activities/chat/index.ts:1575](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/index.ts#L1575)
1313

1414
Text activity - handles agentic text generation, one-shot text generation, and agentic structured output.
1515

docs/reference/functions/createReplayStream.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: createReplayStream
99
function createReplayStream(recording): AsyncIterable<AGUIEvent>;
1010
```
1111

12-
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:1629](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L1629)
12+
Defined in: [packages/typescript/ai/src/activities/chat/stream/processor.ts:1752](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/stream/processor.ts#L1752)
1313

1414
Create an async iterable from a recording
1515

docs/reference/functions/generateMessageId.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: generateMessageId
99
function generateMessageId(): string;
1010
```
1111

12-
Defined in: [packages/typescript/ai/src/activities/chat/messages.ts:434](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/messages.ts#L434)
12+
Defined in: [packages/typescript/ai/src/activities/chat/messages.ts:456](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/messages.ts#L456)
1313

1414
Generate a unique message ID
1515

docs/reference/functions/modelMessageToUIMessage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: modelMessageToUIMessage
99
function modelMessageToUIMessage(modelMessage, id?): UIMessage;
1010
```
1111

12-
Defined in: [packages/typescript/ai/src/activities/chat/messages.ts:303](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/messages.ts#L303)
12+
Defined in: [packages/typescript/ai/src/activities/chat/messages.ts:314](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/messages.ts#L314)
1313

1414
Convert a ModelMessage to UIMessage
1515

docs/reference/functions/modelMessagesToUIMessages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: modelMessagesToUIMessages
99
function modelMessagesToUIMessages(modelMessages): UIMessage[];
1010
```
1111

12-
Defined in: [packages/typescript/ai/src/activities/chat/messages.ts:362](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/messages.ts#L362)
12+
Defined in: [packages/typescript/ai/src/activities/chat/messages.ts:384](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/messages.ts#L384)
1313

1414
Convert an array of ModelMessages to UIMessages
1515

docs/reference/functions/normalizeToUIMessage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: normalizeToUIMessage
99
function normalizeToUIMessage(message, generateId): UIMessage;
1010
```
1111

12-
Defined in: [packages/typescript/ai/src/activities/chat/messages.ts:411](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/messages.ts#L411)
12+
Defined in: [packages/typescript/ai/src/activities/chat/messages.ts:433](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/messages.ts#L433)
1313

1414
Normalize a message (UIMessage or ModelMessage) to a UIMessage
1515
Ensures the message has an ID and createdAt timestamp

docs/reference/interfaces/AgentLoopState.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: AgentLoopState
55

66
# Interface: AgentLoopState
77

8-
Defined in: [packages/typescript/ai/src/types.ts:631](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L631)
8+
Defined in: [packages/typescript/ai/src/types.ts:634](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L634)
99

1010
State passed to agent loop strategy for determining whether to continue
1111

@@ -17,7 +17,7 @@ State passed to agent loop strategy for determining whether to continue
1717
finishReason: string | null;
1818
```
1919

20-
Defined in: [packages/typescript/ai/src/types.ts:637](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L637)
20+
Defined in: [packages/typescript/ai/src/types.ts:640](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L640)
2121

2222
Finish reason from the last response
2323

@@ -29,7 +29,7 @@ Finish reason from the last response
2929
iterationCount: number;
3030
```
3131

32-
Defined in: [packages/typescript/ai/src/types.ts:633](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L633)
32+
Defined in: [packages/typescript/ai/src/types.ts:636](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L636)
3333

3434
Current iteration count (0-indexed)
3535

@@ -44,6 +44,6 @@ messages: ModelMessage<
4444
| null>[];
4545
```
4646

47-
Defined in: [packages/typescript/ai/src/types.ts:635](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L635)
47+
Defined in: [packages/typescript/ai/src/types.ts:638](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L638)
4848

4949
Current messages array

0 commit comments

Comments
 (0)