What problem does it solve? LLMs frequently produce malformed JSON, invalid dates, or off-format text that breaks downstream parsing and forces retry loops. This Skill uses Microsoft Research's Guidance framework to constrain generation at the token level so outputs always match the required format. ## Core Features & Use Cases - Regex and Grammar Constraints: Enforce valid emails, dates, phone numbers, JSON, XML, and code syntax during generation so invalid tokens are never produced. - Token Healing: Automatically repairs tokenization boundaries between prompt and generation to eliminate spacing artifacts. - Multi-Step Workflows and Agents: Build ReAct agents, chain-of-thought reasoning, and classification pipelines with Pythonic control flow via the @guidance decorator. - Use Case: Extract structured entities (name, date, email) from unstructured customer messages and receive guaranteed-valid JSON that loads directly into your database without validation retries. ## Quick Start Ask the AI to generate a JSON user profile with name, age, and email fields using Guidance regex constraints so the output is guaranteed to be valid.