rulvar API reference / @rulvar/rulvar / needsSeparateExtract
Function: needsSeparateExtract()
ts
function needsSeparateExtract(input): boolean;Defined in: packages/core/dist/index.d.ts
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
| Parameter | Type |
|---|---|
input | ExtractNecessityInput |
Returns
boolean