{"repo":"567-labs/instructor","free":true,"listed":false,"github":"https://github.com/567-labs/instructor","clone":"git clone https://github.com/567-labs/instructor.git","description":"structured outputs for llms","language":"Python","stars":13747,"topics":["openai","python","pydantic-v2","openai-functions","validation","openai-function-calli"],"license":"MIT","category":"ai-agents","readme_excerpt":"Instructor: Structured Outputs for LLMs Get reliable JSON from any LLM. Built on Pydantic for validation, type safety, and IDE support. That's it. No JSON parsing, no error handling, no retries. Just define a model and get structured data. Use Instructor for fast extraction, reach for PydanticAI when you need agents. Instructor keeps schema-first flows simple and cheap. If your app needs richer agent runs, built-in observability, or shareable traces, try PydanticAI. PydanticAI is the official agent runtime from the Pydantic team, adding typed tools, replayable datasets, evals, and production dashboards while using the same Pydantic models. Dive into the PydanticAI docs to see how it extends Instructor-style workflows. Why Instructor? Getting structured data from LLMs is hard. You need to: 1. Write complex JSON schemas 2. Handle validation errors 3. Retry failed extractions 4. Parse unstructured responses 5. Deal with different provider APIs Instructor handles all of this with one simple interface: Without Instructor With Instructor Install in seconds Or with your package manager: Works with every major provider Use the same code with any LLM provider: Production-ready features Automatic retries Failed validations are automatically retried with the error message: Streaming support Stream partial objects as they're generated: Nested objects Extract complex, nested data structures: Used in production by Trusted by over 100,000 developers and companies building AI applications: -","default_branch":null,"files":null,"tree":[],"storefront":"/r/567-labs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/567-labs/instructor/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}