Adds guardrail capabilities to Pydantic AI agents: cost tracking, tool permissions, input/output guards. Current version 0.3.4, early-stage development with weekly releases.
pip install pydantic-ai-shieldsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Simple agent with cost and permission guards
Call shield() on agent in desired order: agent.shield(cost_guard).shield(perm_guard).
Pin to exact minor version (e.g., 0.3.4) and test upgrades.
Replace agent.add_guard(guard) with agent.shield(guard).
No dependency data recorded yet.