Table of Contents

Enum EdgeGuidancePolicy

Namespace
Qavren.Edge.Chat
Assembly
Qavren.Edge.Chat.Onnx.dll

How constrained decoding is treated.

public enum EdgeGuidancePolicy

Fields

Disabled = 0

Default. A ChatResponseFormatJson is refused with ChatGuidanceUnavailable, never silently ignored.

The refusal is scoped to ChatResponseFormatJson and to nothing else. ChatResponseFormat.Text is a non-null value that asks for plain text, needs no constrained decoding, and is already what this client does - refusing it would fail a caller for requesting the default behaviour. A null ResponseFormat is likewise untouched. Upstream's own client maps only ChatResponseFormatJson onto SetGuidance, and this is the same boundary drawn honestly instead of silently.

PreferNative = 1

Probe once per model; apply SetGuidance only when the probe proves the constraint is enforced, otherwise fall through unconstrained and record it.

RequireNative = 2

Probe once; throw ChatGuidanceUnavailable when the probe does not prove enforcement.