verify_answer
Check an answer against its source passages before sending, ensuring every figure is grounded. Returns PASS, REVIEW or FAIL with reasons and a signed evidence record.
Instructions
Check an answer against the passages it was written from, before you send it.
Every figure must be in the passages or follow from figures that are; no model
is used. Returns PASS, REVIEW or FAIL with the reasons, and the signed record.
sources: (id, text) pairs, {"id","text","provenance"} dicts, or bare strings.
policy: a built-in name (e.g. "eu_ai_act_high_risk_v1"), a path, or YAML.
scope: what the request is about, e.g. {"entity": "UPS"}; a figure taken
from a source whose provenance is another entity fails.
risk_class: the request's risk class, when the policy defines them.
Returns the decision (PASS/REVIEW/FAIL), the evidence, the regulatory
mapping and the record with its content hash.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | ||
| answer | Yes | ||
| locale | No | und | |
| policy | No | ||
| sources | Yes | ||
| question | No | ||
| risk_class | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||