Table of Contents

Interface IApprovalService

Namespace
JD.AI.Core.Governance
Assembly
JD.AI.Core.dll

Provides human-in-the-loop or automated approval decisions for sensitive operations.

public interface IApprovalService

Remarks

Implementations include:

Wire this into ApprovalService at startup.

Methods

RequestApprovalAsync(ApprovalRequest, CancellationToken)

Requests approval for the described operation.

Task<ApprovalResult> RequestApprovalAsync(ApprovalRequest request, CancellationToken ct = default)

Parameters

request ApprovalRequest

Details of the operation requiring approval.

ct CancellationToken

Cancellation token.

Returns

Task<ApprovalResult>

An ApprovalResult indicating whether to proceed.