rulvar API reference / @rulvar/core / selectStructuredOutputTier
Function: selectStructuredOutputTier()
ts
function selectStructuredOutputTier(caps, canonicalSchema): StructuredOutputTier;Defined in: packages/core/src/model/caps.ts:84
Tier selection: the model's declared ceiling bounds the tier; the native tier additionally requires a strict-compatible canonical schema (relying on silent server-side fallback is forbidden), degrading to forced-tool. Prefill is not a tier.
Parameters
| Parameter | Type |
|---|---|
caps | ModelCaps |
canonicalSchema | JsonSchema |