Open History to see the last commit
1---
2id: ToolPhaseCompleteInfo
3title: ToolPhaseCompleteInfo
4---
5
6Defined in: packages/ai/src/activities/chat/middleware/types.ts:516
7
8Aggregate information passed to onToolPhaseComplete after all tool calls
9in an iteration have been processed.
10
11## Properties
12
13### needsApproval
14
15```ts
16needsApproval: object[];
17```
18
19Defined in: packages/ai/src/activities/chat/middleware/types.ts:527
20
21Tools that need user approval
22
23#### approvalId
24
25```ts
26approvalId: string;
27```
28
29#### input
30
31```ts
32input: unknown;
33```
34
35#### toolCallId
36
37```ts
38toolCallId: string;
39```
40
41#### toolName
42
43```ts
44toolName: string;
45```
46
47***
48
49### needsClientExecution
50
51```ts
52needsClientExecution: object[];
53```
54
55Defined in: packages/ai/src/activities/chat/middleware/types.ts:534
56
57Tools that need client-side execution
58
59#### input
60
61```ts
62input: unknown;
63```
64
65#### toolCallId
66
67```ts
68toolCallId: string;
69```
70
71#### toolName
72
73```ts
74toolName: string;
75```
76
77***
78
79### results
80
81```ts
82results: object[];
83```
84
85Defined in: packages/ai/src/activities/chat/middleware/types.ts:520
86
87Completed tool results
88
89#### duration?
90
91```ts
92optional duration?: number;
93```
94
95#### result
96
97```ts
98result: unknown;
99```
100
101#### toolCallId
102
103```ts
104toolCallId: string;
105```
106
107#### toolName
108
109```ts
110toolName: string;
111```
112
113***
114
115### toolCalls
116
117```ts
118toolCalls: ToolCall<unknown>[];
119```
120
121Defined in: packages/ai/src/activities/chat/middleware/types.ts:518
122
123Tool calls that were assigned to the assistant message