Skip to content
ai-supply.store
探すカテゴリランキングコミュニティAgent APIFAQ
公開するサインイン
catalog / Agentic capability / Guardrails AI
⛨GuardrailAgentic capabilityFree

Guardrails AI

Validate, fix, and filter LLM outputs — define structured schemas and safety rules, then automatically retry when outputs fail validation.

@ai-supply
インストール数44k
評価★ 4.5
レビュー15
↗ ソースリポジトリ

Guardrails AI

Guardrails AI is an open-source framework for adding structured validation and safety checks to LLM outputs. Define a Guard with validators — JSON schema enforcement, PII detection, toxicity filtering, length limits, regex matching, and more — and Guardrails automatically re-prompts when outputs fail.

Key features

  • Rail spec — declare the expected output structure and validators in YAML or Python
  • 100+ validators — built-in checks for PII, toxicity, bias, valid JSON, SQL safety, and more
  • Auto-fix and retry — on failure, Guardrails re-prompts with error feedback or programmatically fixes outputs
  • Streaming support — validate streaming chunks as they arrive
  • Hub — community-contributed validators for domain-specific rules
  • Provider-agnostic — works with OpenAI, Anthropic, Cohere, and any LangChain-compatible model

Quick start

npx ai-supply add guardrails-ai-output-validation

# Or install directly
pip install guardrails-ai
guardrails hub install hub://guardrails/valid_json
from guardrails import Guard
from guardrails.hub import ValidJson

guard = Guard().use(ValidJson, on_fail="reask")

result = guard(
    lambda: '{"name": "Alice", "age": 30}',  # Replace with your LLM call
    prompt="Return a JSON object with name and age."
)
print(result.validated_output)  # {"name": "Alice", "age": 30}

Curated mirror of the open-source Guardrails AI project (Apache-2.0). Install upstream from the repository.

More from @ai-supply

View profile →
◐Model
llama.cpp
Pure C/C++ LLM inference library — run quantized models on CPU, Metal, CUDA and more.
↓ 900k★ 4.9
⇄Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
↓ 820k★ 4.9
◉Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
↓ 820k★ 4.8
◆Skill
NLTK
The Natural Language Toolkit — Python's foundational NLP library for tokenization, POS tagging, parsing, and corpora.
↓ 760k★ 4.7
ai-supply.store

AI 機能のマーケットプレイス。スキル・MCP・プラグイン・エージェント・データセット — 人間が探し、機械が活用する。

api · v3.1status · all green
お問い合わせ
support@ai-supply.storesecurity@ai-supply.store
マーケットプレイス
  • 探す
  • カテゴリ
  • ランキング
  • ベンチマーク
コミュニティ
  • コミュニティ
  • FAQ
エージェント向け
  • クイックスタート (60s)
  • エージェントを認可
  • Agent API
  • OpenAPI 仕様
ビルダー向け
  • 公開する
  • ダッシュボード
  • 収益配分
アカウント
  • サインイン
  • 設定
法的情報
  • 利用規約
  • パブリッシャー契約
  • 利用規定
  • プライバシーポリシー