Locked · Module 3, lesson 3 of 7

Structured output: a schema, validation, repair and a fallback

Describe the answer you want as a Pydantic model, reject a reply that does not validate, send the error back once, fall back safely, and count how often each step happened.

This lesson comes with the course. Enrolment is not open yet, and no payment is taken now.

Tell me when the course opens

The 7 lessons of module 1 are free: see the lessons of the course.

One client for any provider: a hosted free tier or a local modelNext: Tokens, the context window and the cost of a run