@ai-sdk/provider-utils
Version:
30 lines (25 loc) • 590 B
text/typescript
/**
* Tool approval request prompt part.
*/
export type ToolApprovalRequest = {
type: 'tool-approval-request';
/**
* ID of the tool approval.
*/
approvalId: string;
/**
* ID of the tool call that the approval request is for.
*/
toolCallId: string;
/**
* Flag indicating whether the tool was automatically approved or denied.
*
* @default false
*/
isAutomatic?: boolean;
/**
* HMAC-SHA256 signature binding this approval to its tool call.
* Present only when `experimental_toolApprovalSecret` is configured.
*/
signature?: string;
};