antarraksha-autogen
Antarraksha AI Agent Enforcement SDK for Microsoft AutoGen.
Installation
pip install antarraksha-autogen
Quick Start
Instantiate the Antarraksha hook and call its filter methods from inside your AutoGen message handlers and code executors. Registration happens automatically on first use — no login, no API key, no signup required.
from antarraksha_autogen import AntarrakshaAutoGenHook
hook = AntarrakshaAutoGenHook(agent_id="my-autogen-agent")
result = hook.filter_message(sender="assistant", message="Execute command: ls -la")
if result["decision"] == "DENY":
raise PermissionError(result["reason"])
result = hook.check_code_execution(code="import os; os.system('rm -rf /')", language="python")
if result["decision"] == "DENY":
raise PermissionError(result["reason"])
Wire filter_message into your AutoGen agent's message middleware and check_code_execution into your code-executor pre-hook. Every intercepted call is logged and visible at https://antarraksha.ai/registry.
Parameters
| Parameter | Default | Description |
|---|---|---|
agent_id |
None |
Unique identifier for your agent. Triggers auto-registration on first use. |
base_url |
"https://antarraksha.ai" |
Antarraksha endpoint. Override for self-hosted / dev. |
passport_id |
None |
Optional pre-issued passport ID (e.g. ANTK-PASS-xxx). |
sdk_key |
None |
Optional pre-issued SDK key. If omitted and agent_id is set, the SDK auto-registers and obtains one. |
fail_closed |
True |
If True, deny on enforcement-server unreachable. Set False for fail-open during early integration. |
Corporate Network Note
If you're behind a corporate TLS-inspection proxy and see SSLCertVerificationError, install:
pip install pip-system-certs
This makes Python trust your Windows / macOS system certificate store.
Metadata
Release files for antarraksha-autogen 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| antarraksha_autogen-0.1.4.tar.gz | 4.7 kB | Without provenance | Details for antarraksha_autogen-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| antarraksha_autogen-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for antarraksha_autogen-0.1.4-py3-none-any.whl |
Total release size: 10.2 kB
Release files / antarraksha_autogen-0.1.4.tar.gz
| Download URL | antarraksha_autogen-0.1.4.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fec7d81b26523bdb635b338813881ebd1f07a4c1d3922d0c0d421bef43ab828b
|
|
BLAKE2b-256 checksum How to use checksums |
b4504258b24b70f47b63e129ccd9a28baea90e8709d19e65a898f059907de34b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / antarraksha_autogen-0.1.4-py3-none-any.whl
| Download URL | antarraksha_autogen-0.1.4-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28c596dac1be1055684bdd81f48c097b827c73335968c8b2ae2f18d3807d3cb1
|
|
BLAKE2b-256 checksum How to use checksums |
89b98f9e2635be72904b0821aba8c1657933f0d7f053047aa7fd006957d18e1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for antarraksha-autogen 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.