@ai-sdk/provider-utils
Version:
28 lines (23 loc) • 555 B
text/typescript
/**
* Tool approval response prompt part.
*/
export type ToolApprovalResponse = {
type: 'tool-approval-response';
/**
* ID of the tool approval.
*/
approvalId: string;
/**
* Flag indicating whether the approval was granted or denied.
*/
approved: boolean;
/**
* Optional reason for the approval or denial.
*/
reason?: string;
/**
* Flag indicating whether the tool call is provider-executed.
* Only provider-executed tool approval responses should be sent to the model.
*/
providerExecuted?: boolean;
};