vstorm-co/pydantic-ai-shields
Guardrail capabilities for Pydantic AI — cost tracking, prompt injection detection, PII filtering, secret redaction, tool permissions, and async guardrails. Built on pydantic-ai's native capabilities API.
Implements guardrails as composable Pydantic AI capabilities rather than external middleware, enabling cost tracking via auto-detected model pricing, prompt injection detection across six attack categories, and concurrent guard execution that cancels LLM calls on early violation detection. Provides both infrastructure shields (tool permissions, custom input/output validation) and content shields (PII regex detection, secret redaction, keyword blocking) that integrate directly into agent initialization without wrapper overhead.
27 stars and 3,073 monthly downloads. Available on PyPI.
Stars
27
Forks
4
Language
Python
License
MIT
Category
Last pushed
Mar 28, 2026
Monthly downloads
3,073
Commits (30d)
0
Dependencies
3
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/agents/vstorm-co/pydantic-ai-shields"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Featured in
Related agents
microsoft/agent-governance-toolkit
AI Agent Governance Toolkit — Policy enforcement, zero-trust identity, execution sandboxing, and...
ucsandman/DashClaw
🛡️Decision infrastructure for AI agents. Intercept actions, enforce guard policies, require...
mattijsmoens/sovereign-shield
AI security framework: tamper-proof action auditing, prompt injection firewall, ethical...
vstorm-co/pydantic-ai-middleware
Middleware layer for Pydantic AI — intercept, transform & guard agent calls with 7 lifecycle...
Dicklesworthstone/destructive_command_guard
The Destructive Command Guard (dcg) is for blocking dangerous git and shell commands from being...