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

ToolPhaseCompleteInfo.md

125 lines1.9 KB

Interface: ToolPhaseCompleteInfo

Defined in: packages/ai/src/activities/chat/middleware/types.ts:311

Aggregate information passed to onToolPhaseComplete after all tool calls in an iteration have been processed.

Properties

needsApproval

needsApproval: object[];

Defined in: packages/ai/src/activities/chat/middleware/types.ts:322

Tools that need user approval

approvalId

approvalId: string;

input

input: unknown;

toolCallId

toolCallId: string;

toolName

toolName: string;

needsClientExecution

needsClientExecution: object[];

Defined in: packages/ai/src/activities/chat/middleware/types.ts:329

Tools that need client-side execution

input

input: unknown;

toolCallId

toolCallId: string;

toolName

toolName: string;

results

results: object[];

Defined in: packages/ai/src/activities/chat/middleware/types.ts:315

Completed tool results

duration?

optional duration: number;

result

result: unknown;

toolCallId

toolCallId: string;

toolName

toolName: string;

toolCalls

toolCalls: ToolCall<unknown>[];

Defined in: packages/ai/src/activities/chat/middleware/types.ts:313

Tool calls that were assigned to the assistant message