Antarraksha AI Agent Enforcement SDK for Semantic Kernel
Project description
antarraksha-semantic-kernel
Antarraksha AI Agent Enforcement SDK for Microsoft Semantic Kernel.
Installation
pip install antarraksha-semantic-kernel
Quick Start
Attach Antarraksha as a prompt filter and function filter on your Semantic Kernel instance. Registration happens automatically on first use — no login, no API key, no signup required.
from semantic_kernel import Kernel
from antarraksha_semantic_kernel import (
AntarrakshaPromptFilter,
AntarrakshaFunctionFilter,
)
prompt_filter = AntarrakshaPromptFilter(agent_id="my-sk-agent")
function_filter = AntarrakshaFunctionFilter(agent_id="my-sk-agent")
kernel = Kernel()
kernel.add_filter("prompt_rendering", prompt_filter.on_prompt_render)
kernel.add_filter("function_invocation", function_filter.on_function_invocation)
Run your kernel normally — every prompt render and function invocation is now enforced against Antarraksha policy. DENY raises PermissionError.
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.
Project details
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 antarraksha_semantic_kernel-0.1.3.tar.gz.
File metadata
- Download URL: antarraksha_semantic_kernel-0.1.3.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0ed4bee3cae1f548b76444f67b630a1fec4c193a0b1686df92329968161bd3d
|
|
| MD5 |
e7534ceef96df2c3637c042da59b4166
|
|
| BLAKE2b-256 |
b5481bd94b204454243c9adb87cab790ee4be4ae8232efc4da0d95fc8d7763a6
|
File details
Details for the file antarraksha_semantic_kernel-0.1.3-py3-none-any.whl.
File metadata
- Download URL: antarraksha_semantic_kernel-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b5c5dfcdae90d092e01b8e36246ff929278e168412d6daae277146564c50ac1
|
|
| MD5 |
aa15fbf7337910d19ee3c8c7e6750cd3
|
|
| BLAKE2b-256 |
e1e94bac0d2de455d37fed303876a9402b4ab5666c74f71c53d352b897e13aa8
|