Class RedactionResult
- Namespace
- JD.AI.Core.Governance
- Assembly
- JD.AI.Core.dll
Result of running RedactWithClassifications(string) on a piece of content.
public sealed class RedactionResult
- Inheritance
-
RedactionResult
- Inherited Members
Constructors
RedactionResult(string, IReadOnlyList<ClassificationMatch>)
Result of running RedactWithClassifications(string) on a piece of content.
public RedactionResult(string content, IReadOnlyList<ClassificationMatch> matches)
Parameters
contentstringmatchesIReadOnlyList<ClassificationMatch>
Properties
Content
Content after redaction (may equal input if action is AuditOnly).
public string Content { get; }
Property Value
HasMatches
True if any match occurred.
public bool HasMatches { get; }
Property Value
Matches
All classification matches found during processing.
public IReadOnlyList<ClassificationMatch> Matches { get; }
Property Value
ShouldDeny
True if any classification with DenyAndAudit fired.
public bool ShouldDeny { get; }