ValidationOptions

Options & Configuration · AiDotNet.PromptEngineering.Analysis

Options for controlling prompt validation behavior.

For Beginners

Settings for how strict the validation should be.

Example:

How It Works

Configures what checks are performed and how strict validation should be.

Constructors

Constructor Summary
ValidationOptions()

Properties

Property Summary
IssueSeverity MinSeverityToReport { get; set; } Gets or sets the minimum severity level to report.
ValidationOptions Lenient { get; } Gets a lenient validation configuration.
ValidationOptions Strict { get; } Gets a strict validation configuration.
bool CheckForInjection { get; set; } Gets or sets whether to check for potential prompt injection.
bool ValidateVariables { get; set; } Gets or sets whether to validate template variables.
int MaxTokens { get; set; } Gets or sets the maximum allowed token count.