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

IterationInfo.md

34 lines917 Bytes

1---
2id: IterationInfo
3title: IterationInfo
4---
5​
6# Interface: IterationInfo
7​
8Defined in: [packages/typescript/ai/src/activities/chat/middleware/types.ts:219](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/middleware/types.ts#L219)
9​
10Information passed to onIteration at the start of each agent loop iteration.
11​
12## Properties
13​
14### iteration
15​
16```ts
17iteration: number;
18```
19​
20Defined in: [packages/typescript/ai/src/activities/chat/middleware/types.ts:221](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/middleware/types.ts#L221)
21​
220-based iteration index
23​
24***
25​
26### messageId
27​
28```ts
29messageId: string;
30```
31​
32Defined in: [packages/typescript/ai/src/activities/chat/middleware/types.ts:223](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/activities/chat/middleware/types.ts#L223)
33​
34The assistant message ID created for this iteration