GuardrailConfig
Options & Configuration · AiDotNet.Safety.Guardrails
Configuration for guardrail modules.
For Beginners
Use this to configure input/output guardrails including length limits, topic restrictions, and custom rules.
Constructors
| Constructor | Summary |
|---|---|
GuardrailConfig() |
Properties
| Property | Summary |
|---|---|
SafetyAction? DefaultAction { get; set; } |
Default action for guardrail violations. |
int? MaxInputLength { get; set; } |
Maximum allowed input length in characters. |
int? MaxOutputLength { get; set; } |
Maximum allowed output length in characters. |
string[] TopicRestrictions { get; set; } |
Restricted topics to block. |