What problem does it solve? LLMs often produce malformed JSON or free-form text that breaks downstream parsing. This Skill guarantees structurally valid outputs by constraining token generation at the logit level using finite state machines, eliminating retry loops and post-generation validation. ## Core Features & Use Cases - Schema-Constrained Generation: Generate JSON matching Pydantic models or JSON schemas with guaranteed validity, including nested models, enums, literals, and field constraints. - Multiple Generator Types: Use choice, regex, integer, float, and JSON generators for classification, data extraction, and pattern-matched output. - Local Model Backends: Run with Transformers, llama.cpp, or vLLM for high-throughput production serving, with quantization and multi-GPU support. - Use Case: Extract structured company information (name, founded year, industry, employees) from hundreds of unstructured text documents into validated Pydantic objects for a database pipeline. ## Quick Start Ask the AI to use Outlines with a Pydantic model to extract structured fields like name, age, and email from a block of unstructured text using a local Transformers model.