Quiz 10 Question 8 of 20

A helpdesk integration team connects a Foundry-hosted chat model to their ticketing system. The system expects each response to be valid JSON with the fields ticket_id, category, and priority so it can be parsed automatically, but the model sometimes wraps its answer in a sentence like 'Here's your ticket:' before the JSON, breaking the parser. What should the team do to guarantee the response is parseable JSON matching their schema?

Select an answer to reveal the explanation.

Motivation