Table of Contents

Class PromptSafetyResult

Namespace
JD.AI.Core.Security
Assembly
JD.AI.Core.dll

Result of a prompt injection safety check.

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

Constructors

PromptSafetyResult(bool, IReadOnlyList<string>)

Result of a prompt injection safety check.

public PromptSafetyResult(bool IsSafe, IReadOnlyList<string> Violations)

Parameters

IsSafe bool
Violations IReadOnlyList<string>

Properties

IsSafe

public bool IsSafe { get; init; }

Property Value

bool

Violations

public IReadOnlyList<string> Violations { get; init; }

Property Value

IReadOnlyList<string>