Skip to content
← plyra.ai

Framework Integrations

Plyra Guard works with every major agentic framework. Pick yours:

🦜

LangGraph

Custom tool node pattern. Works with StateGraph and any graph topology.

🤖

AutoGen

Wrap registered functions on UserProxyAgent.

âš“

CrewAI

Wrap @tool definitions. BlockedActions surface as CrewAI errors.

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.