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

ToolResultPart.md

58 lines1002 Bytes

1---
2id: ToolResultPart
3title: ToolResultPart
4---
5​
6# Interface: ToolResultPart
7​
8Defined in: [types.ts:261](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L261)
9​
10## Properties
11​
12### content
13​
14```ts
15content: string;
16```
17​
18Defined in: [types.ts:264](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L264)
19​
20***
21​
22### error?
23​
24```ts
25optional error: string;
26```
27​
28Defined in: [types.ts:266](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L266)
29​
30***
31​
32### state
33​
34```ts
35state: ToolResultState;
36```
37​
38Defined in: [types.ts:265](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L265)
39​
40***
41​
42### toolCallId
43​
44```ts
45toolCallId: string;
46```
47​
48Defined in: [types.ts:263](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L263)
49​
50***
51​
52### type
53​
54```ts
55type: "tool-result";
56```
57​
58Defined in: [types.ts:262](https://github.com/TanStack/ai/blob/main/packages/typescript/ai/src/types.ts#L262)