Observed since 20 Oct, 22:05 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Python SDK for the AgentGuard AI Agent Authorization API
Python SDK for the AgentGuard AI Agent Authorization API.
AgentGuard provides an authorization and policy layer between AI agents and the tools or resources they interact with. It evaluates requested actions and returns one of three decisions:
ALLOWBLOCKREQUIRE_APPROVALpip install agentguard
from agentguard import AgentGuard
client = AgentGuard(api_key="ag_live_your_api_key")
result = client.authorize(
agent_id="sales-agent",
action="send_email",
resource="customer_123",
parameters={
"recipient": "customer@example.com"
}
)
print(result.decision)
print(result.risk_score)
print(result.reason)
The returned EvaluationResult provides convenient properties:
if result.allowed:
print("Action is allowed")
if result.blocked:
print("Action is blocked")
if result.requires_approval:
print("Human approval is required")
For actions requiring approval:
if result.requires_approval:
approval = client.get_approval_status(result.approval_id)
print(approval)
The SDK defaults to the hosted AgentGuard API, but a custom API URL can be supplied:
client = AgentGuard(
api_key="ag_live_your_api_key",
base_url="https://your-agentguard-instance.example.com"
)
Keep your AgentGuard API key secret. Do not commit API keys to source control or expose them in client-side applications.
Use environment variables or a secret manager in production.
AgentGuard is licensed under the MIT License. See the LICENSE file for details.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 4 Oct 2026 | 1 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 22:05 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:0f058b2a8e8b4ff20501d10a51ae3d217d3ce2c135a25bf2aae4a8aa0779ae32