Ensure responses follow JSON Schema for structured outputs
The following demo uses zod to describe and parse the response to JSON.
Learn more in the OpenAI Structured outputs docs.
Migrated from folder: Archive/openai_structured_output_demo