Class PromptSafetyResult
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
IsSafeboolViolationsIReadOnlyList<string>
Properties
IsSafe
public bool IsSafe { get; init; }
Property Value
Violations
public IReadOnlyList<string> Violations { get; init; }