An application needs a stable JSON response contract for downstream validation. Which implementation is strongest?

Published
  1. Remove validation after one successful example
  2. Assume a sentence saying JSON guarantees a valid schema
  3. Use the model's supported structured-output mechanism and validate the parsed result
  4. Execute the returned text as arbitrary application code

Comments — 0