UNPKG

ai

Version:

AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.

34 lines (28 loc) 791 B
import type { TypedToolCall } from './tool-call'; import type { ToolSet } from '@ai-sdk/provider-utils'; /** * Output part that indicates that a tool approval request has been made. * * The tool approval request can be approved or denied in the next tool message. */ export type ToolApprovalRequestOutput<TOOLS extends ToolSet> = { type: 'tool-approval-request'; /** * ID of the tool approval request. */ approvalId: string; /** * Tool call that the approval request is for. */ toolCall: TypedToolCall<TOOLS>; /** * Flag indicating whether the tool was automatically approved or denied. * * @default false */ isAutomatic?: boolean; /** * HMAC-SHA256 signature binding this approval request to its tool call. */ signature?: string; };