Skip to content

rulvar API reference


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

ParameterType
capsModelCaps
canonicalSchemaJsonSchema

Returns

StructuredOutputTier