rulvar API reference / @rulvar/rulvar / selectStructuredOutputTier
Function: selectStructuredOutputTier()
ts
function selectStructuredOutputTier(caps, canonicalSchema): StructuredOutputTier;Defined in: packages/core/dist/index.d.ts
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 |