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

ToolInputRepairContext.md

56 lines748 Bytes

1---
2id: ToolInputRepairContext
3title: ToolInputRepairContext
4---
5​
6Defined in: packages/ai/src/types.ts:1292
7​
8What a `repairToolInput` function gets: a tool input that failed the check.
9​
10## Properties
11​
12### error
13​
14```ts
15error: Error;
16```
17​
18Defined in: packages/ai/src/types.ts:1300
19​
20The validation error. A Standard Schema error also has `issues`.
21​
22***
23​
24### input
25​
26```ts
27input: unknown;
28```
29​
30Defined in: packages/ai/src/types.ts:1298
31​
32The input that failed, after approval edits and middleware.
33​
34***
35​
36### tool
37​
38```ts
39tool: AnyTool;
40```
41​
42Defined in: packages/ai/src/types.ts:1294
43​
44The tool the model called.
45​
46***
47​
48### toolCall
49​
50```ts
51toolCall: ToolCall;
52```
53​
54Defined in: packages/ai/src/types.ts:1296
55​
56The call, with its id and the raw arguments text.