Question 290
Incoming documents may be invoices or delivery notices and one extractor must run. Which structured-output contract best handles the record?
Explanation
Correct Answer
A tool-choice policy can require some appropriate available tool without forcing one fixed schema on differing document types. Invoices and delivery notices need distinct field contracts; routing must select the correct schema for the detected type. By contrast, delivery notices require a different extraction schema. The invoice schema lacks fields that are meaningful for delivery status and notice metadata. The service needs machine-readable output for each form. Unstructured prose cannot be reliably consumed as typed extraction by the downstream service.
Incorrect Answers
Delivery notices require a different extraction schema. The invoice schema lacks fields that are meaningful for delivery status and notice metadata. Incoming documents may be invoices or delivery notices and one extractor must run. Instead, require selection of an appropriate schema tool without fixing its name.
The service needs machine-readable output for each form. Unstructured prose cannot be reliably consumed as typed extraction by the downstream service. Incoming documents may be invoices or delivery notices and one extractor must run. Instead, require selection of an appropriate schema tool without fixing its name.
Order is not document classification. Document order in a queue says nothing about whether the current record is a notice or invoice. Incoming documents may be invoices or delivery notices and one extractor must run. Instead, require selection of an appropriate schema tool without fixing its name.