Skip to main content

Install

Protect a tool

When the agent calls delete_file, plyra-guard intercepts first:
ExecutionBlockedError carries three fields that explain exactly what happened: what_happened, policy_triggered, and how_to_fix. Catch it to handle blocks gracefully in your agent loop.

Handle blocked calls

Both exceptions carry structured context. Your agent loop should catch them and decide whether to retry with a different approach, surface to the user, or abort the task.

Wrap a list of tools

Pass safe_tools to any framework that accepts a tool list.

Launch the dashboard

Policy reference

Learn the full rule syntax.

Framework integrations

LangGraph, AutoGen, CrewAI, and more.