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 = 5A type implementing IGuardrailValidator with a parameterless constructor. Value: Type.
MaxAttempts = 0Maximum attempts (model call plus verification) per execution. Value: int.
MaxExecutionTimeMs = 1Wall-clock budget in milliseconds for the whole execution. Value: int.
MaxModelCalls = 2Hard ceiling on model calls, judge calls included. Value: int.
OutputRequirement = 4Free-text requirement the output must meet, sent to the model with the request. Value: string.
RequireJudge = 3Ask the judge to review the result before it is returned. Value: bool.