567-labs/instructor
A Python library that wraps LLM providers to extract type-safe, validated structured data using Pydantic models.

Velocity · 7d
+12
★ / day
Trend
→steady
star history
Instructor is a developer library that interfaces with LLM providers (OpenAI, Anthropic, etc.) to extract structured, validated data from natural language inputs. Users define Pydantic models describing their desired output schema, and the library handles JSON schema generation, response parsing, validation errors, and automatic retries. It provides a clean API where you specify a response_model and get back typed Python objects instead of raw text.