GuardrailResult
Models & Types · AiDotNet.Safety.Guardrails
Result from guardrail evaluation.
For Beginners
GuardrailResult provides AI safety functionality. Default values follow the original paper settings.
Constructors
| Constructor | Summary |
|---|---|
GuardrailResult() |
Properties
| Property | Summary |
|---|---|
IReadOnlyList<string> ViolatedRules { get; set; } |
List of violated rules. |
SafetyAction ActionTaken { get; set; } |
The action taken by the guardrail. |
bool Passed { get; set; } |
Whether the content passed the guardrail check. |
string ModifiedContent { get; set; } |
The modified content, if the guardrail applied modifications. |