Documentation
Table of Contents

Enum GuardrailType

Namespace
IntentSharp.Attributes
Assembly
IntentSharp.dll

Constraint kinds that can be declared on an intent method. Each maps to a concrete, enforced setting.

public enum GuardrailType
Extension Methods

Fields

CustomValidator = 5

A type implementing IGuardrailValidator with a parameterless constructor. Value: Type.

MaxAttempts = 0

Maximum attempts (model call plus verification) per execution. Value: int.

MaxExecutionTimeMs = 1

Wall-clock budget in milliseconds for the whole execution. Value: int.

MaxModelCalls = 2

Hard ceiling on model calls, judge calls included. Value: int.

OutputRequirement = 4

Free-text requirement the output must meet, sent to the model with the request. Value: string.

RequireJudge = 3

Ask the judge to review the result before it is returned. Value: bool.