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

MidConversationChange.md

46 lines1.0 KB

1---
2id: MidConversationChange
3title: MidConversationChange
4---
5​
6Defined in: [packages/ai/src/types.ts:380](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L380)
7​
8The mid-conversation record that `chat()` saves on the first assistant
9message of a model call. It holds tool names and prompt hashes only, so it
10does not depend on a provider.
11​
12## Properties
13​
14### systemPrompts?
15​
16```ts
17optional systemPrompts?: string[];
18```
19​
20Defined in: [packages/ai/src/types.ts:386](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L386)
21​
22Short prompt hashes: every prompt on a start point, the added prompts otherwise.
23​
24***
25​
26### tools?
27​
28```ts
29optional tools?: string[];
30```
31​
32Defined in: [packages/ai/src/types.ts:382](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L382)
33​
34A start point: the names of every tool.
35​
36***
37​
38### toolsAdded?
39​
40```ts
41optional toolsAdded?: string[];
42```
43​
44Defined in: [packages/ai/src/types.ts:384](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L384)
45​
46Tool names added since the last record.