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 Oct 22, 2026 · GitHub synced Oct 22, 2026

95 stars11 forksLast push Oct 21, 2026 Python MIT

Decision brief

Unverified catalog guidance: 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

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

Avoid when

  • Unverified catalog guidance: If your project already relies on a different framework that does not integrate well with Pydantic
  • Unverified catalog guidance: 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 (0d since push)
As of Oct 22, 2026
Provenance
Not a fork · Organization account
As of Oct 22, 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

README installation instruction · observed Oct 22, 2026

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

MCP server
Unknown; MCP server not established by this scan

Source: repo_scan · Oct 22, 2026

Languages
python

Source: github.language+pyproject.toml · Oct 22, 2026

Categories

Compatibility

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

Documented Python runtime (not runtime-tested)Python

Source: README excerpt (readme_declaration_v2, Oct 22, 2026)

pip install pydantic-ai-shields
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.