Skip to content

rulvar API reference


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

ParameterType
capsModelCaps
canonicalSchemaJsonSchema

Returns

StructuredOutputTier