Enum EdgeGuidancePolicy
How constrained decoding is treated.
public enum EdgeGuidancePolicy
Fields
Disabled = 0Default. A
ChatResponseFormatJsonis refused with ChatGuidanceUnavailable, never silently ignored.The refusal is scoped to
ChatResponseFormatJsonand to nothing else.ChatResponseFormat.Textis 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 nullResponseFormatis likewise untouched. Upstream's own client maps onlyChatResponseFormatJsonontoSetGuidance, and this is the same boundary drawn honestly instead of silently.PreferNative = 1Probe once per model; apply
SetGuidanceonly when the probe proves the constraint is enforced, otherwise fall through unconstrained and record it.RequireNative = 2Probe once; throw ChatGuidanceUnavailable when the probe does not prove enforcement.