SafetyFilterOptions<T>

Options & Configuration · AiDotNet.Models.Options

Configuration options for safety filtering mechanisms.

Inheritance: ModelOptions → SafetyFilterOptions<T>

For Beginners

These settings control how strict your “security guards” are. You can adjust sensitivity thresholds, what types of content to filter, and how thoroughly to check for problems.

How It Works

These options control how inputs and outputs are validated and filtered to prevent harmful or inappropriate content from passing through the AI system.

Constructors

Constructor Summary
SafetyFilterOptions()

Properties

Property Summary
bool EnableInputValidation { get; set; } Gets or sets whether to enable input validation.
bool EnableOutputFiltering { get; set; } Gets or sets whether to enable output filtering.
bool LogFilteredContent { get; set; } Gets or sets whether to log filtered content for review.
bool UseClassifier { get; set; } Gets or sets whether to use a classifier for harmful content detection.
double JailbreakSensitivity { get; set; } Gets or sets the jailbreak detection sensitivity.
double SafetyThreshold { get; set; } Gets or sets the safety threshold for content filtering.
int MaxInputLength { get; set; } Gets or sets the maximum input length to process.
string LogFilePath { get; set; } Gets or sets the file path used when logging filtered content.
string[] HarmfulContentCategories { get; set; } Gets or sets the harmful content categories to check for.