truefoundry-custom-guardrail
Build a new custom guardrail integration for the TrueFoundry AI Gateway by wrapping a vendor's library or service behind a small FastAPI wrapper that conforms to TFY's custom-guardrail HTTP contract. Use this skill when the user asks to integrate ANY guardrail vendor (NVIDIA NeMo Guardrails, Llama Guard, Lakera, Robust Intelligence, ShieldGemma, custom PII filters, internal policy engines, in-house safety classifiers, etc.) with TrueFoundry as a custom guardrail. Also trigger when the user says "add X as a guardrail to truefoundry", "wrap X as a guardrail", "integrate X with tfy guardrails", "build a custom guardrail for tfy", or references the truefoundry/custom-guardrails-template repo. This skill encodes the wrapper architecture, the gateway's verdict semantics, an example hosting playbook, and every gotcha learned from real end-to-end builds.
2026-06-01