Question 20
A tool call returns JSON that matches the extraction schema, but its invoice total is $430 while the extracted line items sum to $395. What must the application do before booking the invoice?
Explanation
Correct Answer
Schema conformance guarantees shape, not mathematical truth. A separate calculation can detect inconsistent financial values that a JSON validator accepts.
Incorrect Answers
Valid fields can still hold wrong numbers. Mathematical reconciliation is independent of JSON syntax and field-type checks.
Hiding a mismatch removes important evidence. Preserving both computed and reported totals helps resolve a real data discrepancy.
Arbitrary adjustment fabricates financial information. The pipeline must verify the source and explicitly handle the inconsistency.