Open History to see the last commit
1---
2id: MidConversationChanges
3title: MidConversationChanges
4---
5
6Defined in: packages/ai/src/types.ts:393
7
8What changed in the tools and system prompts between model calls.
9`chat()` passes it in `TextOptions.midConversationChanges`.
10
11## Properties
12
13### changes
14
15```ts
16changes: object[];
17```
18
19Defined in: packages/ai/src/types.ts:404
20
21Each change goes directly before `messages[before]`, or at the end when
22`before === messages.length`. `tools` are the added names.
23`systemPrompts` is how many of the next entries of `systemPrompts` it adds.
24
25#### before
26
27```ts
28before: number;
29```
30
31#### systemPrompts?
32
33```ts
34optional systemPrompts?: number;
35```
36
37#### tools?
38
39```ts
40optional tools?: string[];
41```
42
43***
44
45### start
46
47```ts
48start: object;
49```
50
51Defined in: packages/ai/src/types.ts:398
52
53The tool names of the start point, in start order, and how many entries
54at the front of `systemPrompts` belong to it.
55
56#### systemPrompts
57
58```ts
59systemPrompts: number;
60```
61
62#### tools
63
64```ts
65tools: string[];
66```