Table of Contents

Class SafetyFilterConfiguration<T>

Namespace
AiDotNet.Models.Options
Assembly
AiDotNet.dll

Configuration for safety filtering during inference.

public class SafetyFilterConfiguration<T>

Type Parameters

T

The numeric data type used for calculations (e.g., float, double).

Inheritance
SafetyFilterConfiguration<T>
Inherited Members

Remarks

This configuration controls whether safety filtering is enabled and which implementation is used. When enabled and no custom filter is provided, a default filter is created using the provided options.

For Beginners: This is the safety "on/off switch" and settings bundle. You can leave it alone to use safe defaults, or customize the filter for expert deployments.

Properties

Enabled

Gets or sets whether safety filtering is enabled.

public bool Enabled { get; set; }

Property Value

bool

Remarks

When false, safety validation and output filtering are skipped.

Filter

Gets or sets an optional custom safety filter implementation.

public ISafetyFilter<T>? Filter { get; set; }

Property Value

ISafetyFilter<T>

Remarks

When provided, this filter is used instead of the standard default implementation.

Options

Gets or sets the default options used when constructing the standard safety filter.

public SafetyFilterOptions<T> Options { get; set; }

Property Value

SafetyFilterOptions<T>