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
IdstringUnique identifier for this request.
DescriptionstringShort description of the action requiring approval.
DetailsstringOptional extended description or context.
KindApprovalKindThe kind of operation requiring approval.
WorkflowNamestringWhen the request originates from a workflow, the workflow name.
ToolNamestringWhen the request originates from a tool call, the tool name.
UserIdstringOptional user identity associated with the request.
Properties
Description
Short description of the action requiring approval.
public string Description { get; init; }
Property Value
Details
Optional extended description or context.
public string? Details { get; init; }
Property Value
Id
Unique identifier for this request.
public string Id { get; init; }
Property Value
Kind
The kind of operation requiring approval.
public ApprovalKind Kind { get; init; }
Property Value
ToolName
When the request originates from a tool call, the tool name.
public string? ToolName { get; init; }
Property Value
UserId
Optional user identity associated with the request.
public string? UserId { get; init; }
Property Value
WorkflowName
When the request originates from a workflow, the workflow name.
public string? WorkflowName { get; init; }