Home/Evaluation & Observability/pydantic-ai-shields
pydantic-ai-shields logo

pydantic-ai-shields

vstorm-co/pydantic-ai-shields

Guardrail capabilities for Pydantic AI

GraphCanon updated Sep 13, 2026 · GitHub synced Sep 13, 2026

29views this month

93 stars11 forksLast push Sep 10, 2026 Python MIT

Decision brief

pydantic-ai-shields is specialized to enforce safety guardrails for Pydantic AI tools with features like cost tracking, prompt injection detection, PII filtering, secret redaction, tool permissions, and async guardrails.

Good fit when

  • When you need type-safe integrations with Pydantic and want built-in capabilities via pydantic-ai's native API
  • For adding specific input validation through pluggable functions to prevent prompt injection in your AI interactions

Avoid when

  • If your project already relies on a different framework that does not integrate well with Pydantic
  • When you require detailed content moderation functionalities beyond simple PII filtering and secret redaction

Observed Jul 16, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Very active (2d since push)
As of Sep 13, 2026
Provenance
Not a fork · Organization account
As of Sep 13, 2026
Security (OSV)
No lockfile
As of Jul 15, 2026

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

pip install pydantic-ai-shields
PyPI

Similar tools

Same-category neighbours. No typed graph edges are catalogued for this tool yet.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

Provides cost tracking, prompt injection detection, PII filtering, secret redaction, tool permissions, and async guardrails built on pydantic-ai's native capabilities API.

Capability facts

Languages
python

Source: github.language+pyproject.toml · Sep 13, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Python runtimePython

Source: README excerpt (regex_v1, Sep 13, 2026)

```python from pydantic_ai import Agent
Source link

Tags

README

Installation Quick Start Infrastructure Shields Class Description Token/USD tracking with budget enforcement Block tools or require approval Custom input validation (pluggable function) Custom output validation (pluggable function) Concurrent guardrail + LLM execution License MIT...

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.