Framework Integrations¶
Plyra Guard works with every major agentic framework. Pick yours:
General Pattern¶
For any framework not listed, the general pattern is:
from plyra_guard import ActionGuard
guard = ActionGuard()
# Option A — decorator
@guard.wrap
def my_tool(arg: str) -> str:
...
# Option B — wrap a list of tools
safe_tools = guard.wrap([tool1, tool2, tool3])
# Option C — wrap a callable
safe_fn = guard.wrap(some_function)
The wrapped version is a drop-in replacement — same signature, same return type, raises PolicyViolationError on block.