@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
Metadata
Release files for mandatedev-agent 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mandatedev_agent-0.1.0.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mandatedev_agent-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.1 kB
Release files / mandatedev_agent-0.1.0.tar.gz
| Download URL | mandatedev_agent-0.1.0.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd59050bfc8e62a2394f2930a62af265c520f8b7f00593b7cfd73e68cf4a9f37
|
|
BLAKE2b-256 checksum How to use checksums |
1c0bd734714278bae3564ae1ba85aec3bb201627a44272dff4ed5cb750155f93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / mandatedev_agent-0.1.0-py3-none-any.whl
| Download URL | mandatedev_agent-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d4b5a47fb456de7b01f443adb24fe29b3ba8edabaf5f9da4f0226bfb16c8a586
|
|
BLAKE2b-256 checksum How to use checksums |
3c2684d3f57ab25544c86a5ddb598b7c661c6fd6f19d0e8e216d2b74f0d8179d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|