Instructor

JSON →
library 1.14.5 ·python
verified Jun 9, 2026 install stale

Structured data extraction from LLMs via Pydantic models. Patches or wraps provider clients (OpenAI, Anthropic, Gemini, Cohere, Mistral, Groq, Ollama, and 15+ others) to add response_model, automatic validation, and retry logic. Uses tool-calling or JSON mode depending on provider. Core interface: client.chat.completions.create(response_model=MyModel, ...) returns a validated Pydantic instance. Maintained by Jason Liu / jxnl.

total hits 34
actors 7 distinct systems
last hit 1d ago GPTBot
GPTBot
4
Amazonbot
4
ByteDance
4
MetaBot
4
Script
2
Humans
10

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇩🇪 Germany · VN