Table of Contents

Enum LiteRtConstraintProvider

Namespace
LiteRtLmSharp
Assembly
LiteRtLmSharp.dll

Provider used to compile and enforce custom LiteRtConstraints (the "custom constrained decoding" path). Distinct from EnableConstrainedDecoding, which is the tool-calling constrained-decoding path — the native runtime supports only one of the two per conversation.

public enum LiteRtConstraintProvider

Fields

LlGuidance = 1

The llguidance engine (regex, JSON Schema). Compiled into the native library from source — unlike the tool-calling constraint provider, it does not depend on a platform prebuilt.