A model generates JSON for a downstream workflow. Some responses contain invalid types or extra prose. What should the integration enforce?

Published
  1. Use supported structured output where available, then validate against the application schema before use.
  2. Evaluate the generated string as executable code to recover the intended object.
  3. Silently coerce any customer identifier into the caller preferred account.
  4. Trust every response if the prompt contains the word JSON.

Comments — 0