Skip to main content

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.

Metadata

Release files for antarraksha-semantic-kernel 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for antarraksha-semantic-kernel 0.1.3
File Size Uploaded Provenance Actions
antarraksha_semantic_kernel-0.1.3.tar.gz 4.1 kB Without provenance Details for antarraksha_semantic_kernel-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for antarraksha-semantic-kernel 0.1.3
File Interpreter ABI Platform Actions
antarraksha_semantic_kernel-0.1.3-py3-none-any.whl Python 3 none any Details for antarraksha_semantic_kernel-0.1.3-py3-none-any.whl

Total release size: 9.1 kB

Release files / antarraksha_semantic_kernel-0.1.3.tar.gz

Download URL antarraksha_semantic_kernel-0.1.3.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a0ed4bee3cae1f548b76444f67b630a1fec4c193a0b1686df92329968161bd3d
BLAKE2b-256 checksum
How to use checksums
b5481bd94b204454243c9adb87cab790ee4be4ae8232efc4da0d95fc8d7763a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / antarraksha_semantic_kernel-0.1.3-py3-none-any.whl

Download URL antarraksha_semantic_kernel-0.1.3-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b5c5dfcdae90d092e01b8e36246ff929278e168412d6daae277146564c50ac1
BLAKE2b-256 checksum
How to use checksums
e1e94bac0d2de455d37fed303876a9402b4ab5666c74f71c53d352b897e13aa8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Security for antarraksha-semantic-kernel 0.1.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page