Skip to main content

Interface: PendingApproval

Defined in: react/src/hooks/useChat.ts:30

A tool call waiting for the user's decision: a tool part in approval-requested. Answer every pending one with respondToToolApprovals() to resume the turn.

Properties​

approvalId​

approvalId: string

Defined in: react/src/hooks/useChat.ts:32

Echoed back in the decision to match the request.


toolCall​

toolCall: object

Defined in: react/src/hooks/useChat.ts:33

arguments​

arguments: unknown

id​

id: string

name​

name: string


toolDefinition?​

optional toolDefinition?: ZodToolDefinition<ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>, unknown>

Defined in: react/src/hooks/useChat.ts:39

The tool definition, when resolvable from local tools.