What it does
A practical view
Instructor wraps model clients so completions must match a schema, with retries when validation fails. It is used to turn messy text into structured records for apps and automations.
Manual work reduced
The task boundary
Removes hand-written JSON repair and regex after each model call.
Operating cost
What access may cost
MIT library; retries increase token cost when the model misses the schema.