Skip to content

Jev directory

Jev Guardrails — vikrantvikaasa27

Drop-in guardrails for any AI app, powered by Jev: it asks narrow yes/no questions about text, such as whether something is a prompt injection, gets a probability, and lets the app allow, review or block in milliseconds, with adapters for Gemini, Anthropic, OpenAI and FastAPI.
Stars
0
Language
Python
Reading time
2 min
Published by
Community
Author
vikrantvikaasa27
Last verified
Oct 2026

This is one of several Jev listings for the same project. The canonical entry is Jev Guardrails — deepansh-saxena.

Highlights

  • Jev answers narrow yes/no questions about text, like whether something is a prompt injection, returning a probability instead of a generated judgment.
  • Provider adapters guard_gemini, guard_anthropic and guard_openai raise GuardrailBlocked with a label and score, for example prompt_injection (0.99).
  • A @protect() decorator wraps any prompt-to-reply function, and a FastAPI middleware answers 400 when a request is blocked.
  • Install with pip install -e plus an extra such as [gemini], [anthropic] or [openai], or no extra for the core; keys are TYPESAFE_API_KEY or JEV_API_KEY in .env.

Quickstart

python
from jev_guardrails import protect

@protect()
def ask(prompt: str) -> str:
    return my_llm(prompt)

Watch out

README reviewed 2026-10-17; the digest ends mid-import in the FastAPI middleware example, so its full setup is not visible. No benchmarks, latency measurements or pricing appear in the captured text; the repo name jev-gaurdrails carries a typo, has 0 stars and lists no license.

Questions about this entry

Short answers drawn from the linked project or page.

Reactions & coverage

Posts, threads, and videos about this entry from around the web.

X: Agent Handoff Gate: agents verify what they hand off

X: Jev as an LLM guardrail inside Agentgateway

X: Vercel's fx safety reviewer, measured at 18× faster

Reddit: Early experiments wiring Jev into Pi as a safety layer and model router.

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai