Table of Contents

Class ApprovalRequest

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

Represents a request for human or system approval before performing a sensitive operation.

public sealed record ApprovalRequest : IEquatable<ApprovalRequest>
Inheritance
ApprovalRequest
Implements
Inherited Members

Constructors

ApprovalRequest(string, string, string?, ApprovalKind, string?, string?, string?)

Represents a request for human or system approval before performing a sensitive operation.

public ApprovalRequest(string Id, string Description, string? Details = null, ApprovalKind Kind = ApprovalKind.Workflow, string? WorkflowName = null, string? ToolName = null, string? UserId = null)

Parameters

Id string

Unique identifier for this request.

Description string

Short description of the action requiring approval.

Details string

Optional extended description or context.

Kind ApprovalKind

The kind of operation requiring approval.

WorkflowName string

When the request originates from a workflow, the workflow name.

ToolName string

When the request originates from a tool call, the tool name.

UserId string

Optional user identity associated with the request.

Properties

Description

Short description of the action requiring approval.

public string Description { get; init; }

Property Value

string

Details

Optional extended description or context.

public string? Details { get; init; }

Property Value

string

Id

Unique identifier for this request.

public string Id { get; init; }

Property Value

string

Kind

The kind of operation requiring approval.

public ApprovalKind Kind { get; init; }

Property Value

ApprovalKind

ToolName

When the request originates from a tool call, the tool name.

public string? ToolName { get; init; }

Property Value

string

UserId

Optional user identity associated with the request.

public string? UserId { get; init; }

Property Value

string

WorkflowName

When the request originates from a workflow, the workflow name.

public string? WorkflowName { get; init; }

Property Value

string