Library for structured LLM outputs via Pydantic.
Instructor makes it easy to get structured data like JSON from LLMs. It uses Pydantic models to define your schema and handles retries, validation, and streaming automatically. Works with OpenAI, Anthropic, and many other providers.