Open History to see the last commit
1---
2id: ToolResultPart
3title: ToolResultPart
4---
5
6# Interface: ToolResultPart
7
8Defined in: [packages/typescript/ai/src/types.ts:354](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L354)
9
10## Properties
11
12### content
13
14```ts
15content: string;
16```
17
18Defined in: [packages/typescript/ai/src/types.ts:357](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L357)
19
20***
21
22### error?
23
24```ts
25optional error: string;
26```
27
28Defined in: [packages/typescript/ai/src/types.ts:359](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L359)
29
30***
31
32### state
33
34```ts
35state: ToolResultState;
36```
37
38Defined in: [packages/typescript/ai/src/types.ts:358](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L358)
39
40***
41
42### toolCallId
43
44```ts
45toolCallId: string;
46```
47
48Defined in: [packages/typescript/ai/src/types.ts:356](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L356)
49
50***
51
52### type
53
54```ts
55type: "tool-result";
56```
57
58Defined in: [packages/typescript/ai/src/types.ts:355](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L355)