Observed since 21 Oct, 09:28 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
AGR Python SDK — governance layer for AI agents
Python SDK for AGR (Agentic Governance Runtime) — a drop-in governance layer for AI agent tool calls. Every action your agent takes is evaluated against your org's policies before it runs.
pip install agr-sdk
import agr
agr.configure(
base_url="https://api.agr.dev", # or your self-hosted AGR instance
api_key="agr_sk_xxx",
agent_id="my-agent",
)
@agr.guard(action="execute_sql", resource="prod_db")
def run_query(sql: str) -> str:
...
Calling run_query(...) now evaluates the action against your AGR policies first. If policy denies it, AGRDeniedError is raised instead of the query running. If policy requires human approval, the call blocks (or raises AGRApprovalTimeoutError) until a human decides.
import agr
agr.configure(base_url="https://api.agr.dev", api_key="agr_sk_xxx", agent_id="my-agent")
tools = agr.wrap_tools(my_langchain_tools) # LangChain BaseTool instances, plain callables, or async callables
from agr import AGRClient
client = AGRClient(api_key="agr_sk_xxx", base_url="https://api.agr.dev")
result = client.evaluate(agent="my-agent", action="deploy", resource="production")
if result.allowed:
...
elif result.denied:
...
elif result.requires_approval:
...
An AsyncAGRClient with the same shape is available for async code.
agr.wrap_tools() auto-detects BaseTool instances.agr.plugins.crewai / agr.plugins.langgraph.MIT
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 27 Jul 2026 | 3 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 09:28 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:80f9f5834a257099b127366bb0a23742bb36135bc3a2b6545e34b966788daa5f