createGroundingValidator
function createGroundingValidator(options): ValidationCapability;State-grounded output validator: checks the assistant reply for action/fact claims unsupported by this turn’s tool calls, flow state, or citations — the “order placed” with no create-order call class of hallucination.
Repair policy is rewrite-not-block: an ungrounded claim is rewritten out of the reply rather than replacing the whole turn with an apology, so the conversation keeps moving. If the judge flags ungrounded but cannot produce a rewrite, the turn is blocked (fail safe). Judge errors fail open with low confidence — the validator is a gate, not a single point of failure.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|