mirror of
https://github.com/hwchase17/langchain.git
synced 2025-10-24 20:20:50 +00:00
guardrails-output-parser
Uses guardrails-ai to validate output.
This example protects against profanity, but with Guardrails you can protect against a multitude of things.
If Guardrails does not find any profanity, then the translated output is returned as is.
If Guardrails does find profanity, then an empty string is returned.