The Mandate Agent SDK — Trust Engine for the Agent Economy
Project description
@mandatedev/agent — Python SDK
Trust Engine for the Agent Economy. Policy enforcement for AI agents.
Install
pip install mandatedev-agent
AutoGen Integration
from mandate_agent import create_mandate_agent, MandateConfig, MandatePolicy, PolicyRule
agent = create_mandate_agent(MandateConfig(
agent_id="procurement-agent-v1",
org_id="your-org-id",
api_key="mdt_...",
control_plane_url="https://your-control-plane",
framework="autogen",
environment="production",
audit_level="full",
policy=MandatePolicy(
agent_id="procurement-agent-v1",
version="1.0.0",
policy_hash="sha256-abc123",
allow=[PolicyRule(tool="read_*"), PolicyRule(tool="search_web")],
deny=[PolicyRule(tool="delete_*"), PolicyRule(tool="db_query")],
)
))
# Wrap your AutoGen tools
safe_tools = agent.autogen.wrap_tools([search_web, read_file])
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mandatedev_agent-0.1.0.tar.gz.
File metadata
- Download URL: mandatedev_agent-0.1.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd59050bfc8e62a2394f2930a62af265c520f8b7f00593b7cfd73e68cf4a9f37
|
|
| MD5 |
0e2adbd95461ae7aec88a0e3980ab2fa
|
|
| BLAKE2b-256 |
1c0bd734714278bae3564ae1ba85aec3bb201627a44272dff4ed5cb750155f93
|
File details
Details for the file mandatedev_agent-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mandatedev_agent-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4b5a47fb456de7b01f443adb24fe29b3ba8edabaf5f9da4f0226bfb16c8a586
|
|
| MD5 |
d8eeb82a5228ee364af6847b38cfb6e2
|
|
| BLAKE2b-256 |
3c2684d3f57ab25544c86a5ddb598b7c661c6fd6f19d0e8e216d2b74f0d8179d
|