Locked · Module 2, lesson 4 of 8

When the output is wrong: retry, repair, fall back

Handle a reply that fails validation in three steps (send the error back, retry once, fall back to a safe default) and count how often each step is used over the twenty sample notices.

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.

Structured output: a schema the reply must fitNext: Tokens, the context window and cost in rupees