Locked · Module 2, lesson 3 of 8
Structured output: a schema the reply must fit
Describe the answer you want as a Pydantic model, ask the model to fill it, and reject a reply that does not validate instead of passing it on.
This lesson comes with the course. Enrolment is not open yet, and no payment is taken now.
The 7 lessons of module 1 are free: see the lessons of the course.
A thin client of your own: one function, any providerNext: When the output is wrong: retry, repair, fall back
