What problem does it solve? LLM applications in production face jailbreak attempts, hallucinated outputs, PII leakage, and toxic content. This Skill provides programmable runtime guardrails that intercept and validate inputs and outputs before they reach users or the model. ## Core Features & Use Cases - Jailbreak & Injection Detection: Block prompt injection patterns like "ignore previous instructions" before they reach the LLM. - Self-Check Input/Output: Validate user input toxicity and verify bot output for hallucinations using custom actions. - PII Filtering & Fact-Checking: Mask sensitive data with Presidio integration and verify factual claims against retrieval sources. - Use Case: A customer support chatbot needs to refuse illegal requests, mask user SSNs, and fact-check its answers. Define Colang flows for each rail and wrap the LLM with LLMRails to enforce all checks at runtime. ## Quick Start Install nemoguardrails with pip, then ask the agent to create a RailsConfig with input and output validation flows and wrap your LLM calls with LLMRails.