Skip to main content

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

antarraksha_semantic_kernel-0.1.3.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

antarraksha_semantic_kernel-0.1.3-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file antarraksha_semantic_kernel-0.1.3.tar.gz.

File metadata

File hashes

Hashes for antarraksha_semantic_kernel-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a0ed4bee3cae1f548b76444f67b630a1fec4c193a0b1686df92329968161bd3d
MD5 e7534ceef96df2c3637c042da59b4166
BLAKE2b-256 b5481bd94b204454243c9adb87cab790ee4be4ae8232efc4da0d95fc8d7763a6

See more details on using hashes here.

File details

Details for the file antarraksha_semantic_kernel-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for antarraksha_semantic_kernel-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6b5c5dfcdae90d092e01b8e36246ff929278e168412d6daae277146564c50ac1
MD5 aa15fbf7337910d19ee3c8c7e6750cd3
BLAKE2b-256 e1e94bac0d2de455d37fed303876a9402b4ab5666c74f71c53d352b897e13aa8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page