File size: 585 Bytes
68d7816 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | import type { ToolInputDisplay } from '#/tool/toolInputDisplay';
export type ApprovalDecision = 'approved' | 'rejected' | 'cancelled';
export interface ApprovalRequest {
readonly id?: string;
readonly sessionId?: string;
readonly agentId?: string;
readonly turnId?: number;
readonly toolCallId?: string;
readonly toolName: string;
readonly action: string;
readonly display: ToolInputDisplay;
}
export interface ApprovalResponse {
readonly decision: ApprovalDecision;
readonly scope?: 'session';
readonly feedback?: string;
readonly selectedLabel?: string;
}
|