For a library for guardrails on LLM outputs, the first results are guardrails-ai/guardrails, nvidia-nemo/guardrails (NeMo Guardrails from NVIDIA is a dedicated framework for building LLM safety guardrails, offering content filtering, output validation, and policy controls that directly match the need for an AI safety framework to prevent harmful outputs) and protectai/llm-guard (LLM Guard is a dedicated security firewall and guardrail framework that scans and sanitizes both inputs and outputs of LLMs, blocking prompt injections, toxicity, and sensitive data leakage — exactly the validation, filtering, and moderation capability this search is after). katanemo/archgw and nvidia/nemo-guardrails round out the shortlist. Compare the match explanations and check the project documentation against your requirements.
Frameworks and libraries for filtering, sanitizing, and validating structured content generated by large language models.
Guardrails is a Python SDK that wraps calls to large language models with configurable validation pipelines, corrective actions, and structured output generation. It provides a unified API layer that connects to over 100 language models, applying consistent validation, streaming, and error-handling across providers. The framework validates and corrects model responses against safety and quality rules, detecting and mitigating risks in both inputs and outputs using pre-built and custom validators. The project distinguishes itself through a validator-pipeline architecture that sequentially appl
Guardrails is a Python SDK that applies configurable validation pipelines and corrective actions to LLM outputs, covering content safety filtering, output validation, input risk detection (including prompt injection), customizable policies, and integration with over 100 LLM providers — exactly what this search asks for.
NeMo Guardrails from NVIDIA is a dedicated framework for building LLM safety guardrails, offering content filtering, output validation, and policy controls that directly match the need for an AI safety framework to prevent harmful outputs.
LLM Guard is a security firewall and guardrail framework designed to scan and sanitize inputs and outputs for large language models. It functions as a proxy gateway and security layer to block prompt injections, toxicity, and sensitive data leakage while ensuring that model interactions remain compliant with organizational policies. The system distinguishes itself through a modular scanner pipeline that utilizes local model orchestration to eliminate external network dependencies. It supports real-time security filtering via streaming chunk analysis and implements a fail-fast execution model
LLM Guard is a dedicated security firewall and guardrail framework that scans and sanitizes both inputs and outputs of LLMs, blocking prompt injections, toxicity, and sensitive data leakage — exactly the validation, filtering, and moderation capability this search is after.
Archgw is a gateway proxy and data plane designed for agentic applications, providing a centralized layer for routing, safety, and orchestration between application logic and multiple large language model providers. It functions as an AI agent orchestrator that automates the execution of agent workflows to remove repetitive plumbing from the core codebase. The system features a provider-agnostic interface layer that standardizes disparate model APIs into a single format and a transparent proxy data plane to intercept traffic. It employs rule-based routing to decouple application logic from sp
Archgw is a gateway proxy that includes built-in input and output guardrails, model safety filters, and observability for LLM interactions, making it a comprehensive AI safety framework that aligns with the search for guardrails to moderate LLM outputs.
NeMo-Guardrails is a toolkit for adding programmable safety constraints and dialogue boundaries to large language model conversational systems. It functions as security middleware that intercepts inputs and outputs to block prompt injections, jailbreaks, and sensitive data leaks, while providing a conversational dialogue manager to define structured interaction flows through configuration files. The framework includes a hallucination filter to screen model outputs for factual accuracy and a specialized modeling language for defining conversational flows and constraints. It provides capabiliti
NeMo-Guardrails is a dedicated toolkit that provides programmable safety constraints, prompt injection blocking, hallucination filtering, and input/output monitoring for LLM conversational systems, directly matching every required feature for LLM output guardrails and AI safety.
This is a framework for building and deploying customizable AI agent services using a standardized reference architecture. It provides the core infrastructure necessary to host multiple agents within a single service, supporting interactive chat interfaces and real-time response streaming. The project distinguishes itself with a human-in-the-loop mechanism that allows agent execution to be paused for manual approval or intervention. It also features path-based routing to direct requests to specific agents and a multi-stage content moderation system to filter outputs through safety guardrails.
This repository is a framework for building AI agent services that includes a multi-stage content moderation system and safety guardrails to filter outputs, along with human-in-the-loop approval, making it a suitable match for an LLM output guardrails framework, though it also provides broader agent infrastructure beyond guardrails alone.
The official PyTorch implementation of Google's Gemma models
This repository provides the PyTorch implementation of Google’s Gemma LLM, not a guardrails framework — while it may include some safety filters, it is a model-loading library, not the standalone tool for validating, moderating, or enforcing safety policies across LLM outputs that you need.
OpenUI is a generative UI development framework that converts natural language descriptions into structured, interactive user interface components using large language models. It enables the real-time transformation of text into functional prototypes such as charts, tables, forms, and cards. The project distinguishes itself through a schema-driven orchestration system that uses typed UI primitives and JSON schemas to constrain model output, ensuring generated interfaces adhere to specific component libraries. It features a streaming parser that allows for progressive component rendering, disp
OpenUI uses LLMs to generate UI components and applies schema-driven constraints to structure those outputs, but it is a generative UI framework, not a dedicated LLM output guardrails or safety moderation tool — it lacks content safety filtering, prompt injection detection, and safety policy features central to this search.
Wenda is a self-hosted infrastructure and gateway platform for deploying language models within internal networks to ensure data privacy and security. It functions as a centralized hub and API gateway that unifies communication between various offline model runners and online service providers through a single interface. The platform includes a workflow orchestrator that uses custom scripts and API calls to automate complex conversation flows and model settings. It also incorporates a retrieval system that augments model responses with external knowledge retrieved from vector databases and se
Wenda is a self-hosted LLM gateway and deployment platform focused on privacy and unified model access, not a dedicated framework for output guardrails, safety filtering, or prompt injection detection as you're looking for.
Deep Searcher is an open-source retrieval-augmented generation engine that indexes private documents into a vector database and uses large language models to answer complex questions with cited reasoning. It functions as both a command-line interface and a web API research tool, enabling users to load data and generate comprehensive reports by combining indexed private information with LLM-powered analysis. The system distinguishes itself through a plugin-based provider architecture that supports multiple embedding models, LLM providers, vector databases, and file loaders as interchangeable c
Deep Searcher is a retrieval-augmented generation engine for document search and report synthesis, not a guardrails or safety framework — it lacks any content filtering, output validation, or prompt injection detection capabilities.
Superagent is a framework for AI assistant orchestration and agent security. It provides the tools to build intelligent assistants that integrate external APIs and maintain conversation memory to automate complex tasks. The project focuses on AI agent security through adversarial testing, red teaming, and the detection of prompt injections and malicious tool calls. It includes automated vulnerability patching, which scans codebases and configurations for security flaws and generates pull requests with fixes. The platform supports retrieval augmented generation by connecting language models t
Superagent is an AI agent orchestration framework that includes security features like prompt injection detection, but its primary purpose is building intelligent assistants rather than being a dedicated output guardrails library for content safety filtering and validation.
Open Canvas is a system for managing stateful AI agent workflows through a collaborative editor and orchestration framework. It provides a shared workspace where humans and large language models co-author documents and write code in real time, supported by a structured text editor with live rendering. The project distinguishes itself by integrating a state manager that tracks session context, user memories, and historical snapshots across conversational threads. It employs a durable execution model that allows for human-in-the-loop interventions and maintains a version tracking system for doc
Open Canvas is a collaborative editor and orchestration framework for AI agent workflows, not a dedicated guardrail library — while it includes middleware guardrail pipelines, its core purpose is co-authoring and state management rather than validated output moderation.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| guardrails-ai/guardrails | 7.6K | Python | Apache-2.0 | |
| nvidia-nemo/guardrails | 5.7K | Python | other | |
| 2.6K |
| Python |
| mit |
| katanemo/archgw | 6.6K | Rust | Apache-2.0 |
| nvidia/nemo-guardrails | 6.5K | Python | NOASSERTION |
| joshuac215/agent-service-toolkit | 4.1K | Python | mit |
| google/gemma_pytorch | 5.7K | Python | Apache-2.0 |
| thesysdev/openui | 14.9K | TypeScript | MIT |
| l15y/wenda | 6.2K | JavaScript | AGPL-3.0 |
| zilliztech/deep-searcher | 7.9K | Python | Apache-2.0 |