What problem does it solve? Getting reliable, structured data from LLM responses is error-prone: raw JSON parsing breaks on malformed output, and manual validation requires repetitive boilerplate. This Skill guides you through using Instructor to enforce Pydantic schemas on LLM outputs, automatically retry failed extractions, and stream partial results. ## Core Features & Use Cases - Schema-Validated Extraction: Define Pydantic response models with field constraints, enums, and custom validators so LLM outputs are type-checked automatically. - Automatic Retries with Error Feedback: When validation fails, Instructor sends the error back to the LLM and retries up to a configurable limit. - Streaming Partial Results: Stream partial objects or iterables as the LLM generates them for real-time UI updates. - Multi-Provider Support: Works with Anthropic Claude, OpenAI, and local models via Ollama using consistent APIs. - Use Case: Extract company information (name, founding year, industry, employee count) from unstructured text into a validated CompanyInfo model, with automatic retry if any field fails validation. ## Quick Start Ask the AI to write Python code using Instructor and a Pydantic model to extract structured fields from a given text with Claude or OpenAI.