Skip to content

rulvar API reference


rulvar API reference / @rulvar/core / needsSeparateExtract

Function: needsSeparateExtract()

ts
function needsSeparateExtract(input): boolean;

Defined in: packages/core/src/model/roles.ts:66

The completed extract-necessity rule: a separate final structured-output invocation fires only when a schema is set AND (routing directs extract to a different model OR the loop model's caps cannot serve the required tier OR finalize is routed, in which case the schema never rides a loop or synthesis turn). Otherwise the schema rides the last loop turn with no extra call (as amended in M4-T01).

Parameters

ParameterType
inputExtractNecessityInput

Returns

boolean