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

LazyToolsConfig.md

33 lines937 Bytes

1---
2id: LazyToolsConfig
3title: LazyToolsConfig
4---
5​
6# Interface: LazyToolsConfig
7​
8Defined in: [packages/ai/src/types.ts:721](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L721)
9​
10Configuration for the lazy-tool discovery catalog, shared by chat() and
11Code Mode. Optional in both — lazy behavior is triggered purely by tools
12marked `lazy: true`; this only tunes how much of each lazy tool's
13description appears in the pre-discovery catalog. The post-discovery payload
14always returns the full description + schema.
15​
16## Properties
17​
18### includeDescription?
19​
20```ts
21optional includeDescription: "full" | "first-sentence" | "none";
22```
23​
24Defined in: [packages/ai/src/types.ts:727](https://github.com/TanStack/ai/blob/main/packages/ai/src/types.ts#L727)
25​
26How much of each lazy tool's description appears in the pre-discovery
27catalog (the names list shown before the model discovers the tool).
28​
29#### Default
30​
31```ts
32'none'
33```