CustomRule

Models & Types · AiDotNet.Safety.Guardrails

A custom safety rule that evaluates text and optionally returns a finding.

Constructors

Constructor Summary
CustomRule(string name, Func<string, SafetyFinding> evaluator) Creates a new custom rule.

Properties

Property Summary
string Name { get; } Gets the name of this custom rule.

Methods

Method Summary
SafetyFinding Evaluate(string text) Evaluates the text against this rule.