Browse the study library +
← All practice questions

You use tool_use with a strict JSON schema, yet get invoices whose line items don't sum to the total. Why?

Show answer and explanation

Answer: B

A strict schema eliminates syntax/shape errors but not semantic ones like bad sums or wrong-field values. Catch those by comparing a calculated total to the stated total in code.

سخت schema بناوٹ کی غلطیاں ختم کر دیتا ہے مگر مطلب کی غلطیاں (غلط جوڑ یا غلط خانے کی قدر) نہیں۔ انہیں پکڑنے کے لیے کوڈ میں حساب کیا ہوا جوڑ اور لکھا ہوا جوڑ آپس میں ملائیں۔

One practice question a week

Get a new exam-style question with a clear explanation in your inbox. Free, no spam, unsubscribe any time.

We only use your email for these updates. See our privacy policy.