An e-commerce team built a system where a Foundry-hosted model reads a customer email and extracts the order number, item name, and quantity, then passes that result directly into an inventory API. The API rejects any input that isn't in its exact expected format, and the integration has been failing intermittently because the model's free-form replies phrase the same information differently each time. What should the team configure to fix this?
Select an answer to reveal the explanation.
Short Explanation
You don't need the model to know more; you need it to stop freelancing the format. Configure structured output so every reply comes back in the same JSON shape the inventory API can parse.
Full Explanation
The fix is to configure the deployment's structured output option to constrain responses to a fixed JSON schema. That gives every reply a defined set of fields in a machine-readable shape, so the inventory API receives the order number, item name, and quantity in the exact format it expects and stops failing intermittently on parsing. Increasing the deployment's temperature setting so responses vary more is wrong because it makes the wording less predictable, which would worsen the formatting inconsistency. Adding retrieval-augmented generation so the model can look up each order before replying is also wrong because retrieval helps when facts are missing, such as pulling order details from a database, but here the needed information is already in the customer email; the issue is the shape of the reply, not its accuracy. Lowering the maximum output token limit so responses are shorter is wrong because it does not enforce a consistent structure and may truncate a valid response before all three required fields are included.