ReasoningPlanSettings.reviewSpec property
Review each proposed spec before it is surfaced: a second LLM request critiques the candidate against the original query, and one revision is applied when the review rejects it. Costs one or two extra plan-time requests; the plan phase is pre-live, so quality usually beats cost. Defaults to false — except when allowedTools is supplied (flow design), where it defaults to true: the review also critiques the proposed flow’s cost and its coherence with the prompt, which smaller local models get wrong often enough to be worth a request. Pass an explicit false to opt out.
Signature:
reviewSpec?: boolean;