Skip to main content

HELM governance adapter for semantic kernel — fail-closed tool calling for AI agents

Project description

helm-semantic-kernel

HELM governance adapter for Microsoft Semantic Kernel.

What it does

Governs Semantic Kernel function and plugin calls through HELM:

  1. Every kernel function invocation is evaluated against HELM policy before execution
  2. Denied calls raise HelmToolDenyError (fail-closed by default)
  3. Receipts with SHA-256 hashes are collected for every approved execution

Quick start

from helm_semantic_kernel import HelmSemanticKernelGovernor

governor = HelmSemanticKernelGovernor(helm_url="http://localhost:8080")
governed_fn = governor.govern_function("search", "web_search", search_fn)
# Or govern FunctionCallContent objects
governor.govern_function_call_content(function_call)

Configuration

Parameter Default Description
helm_url http://localhost:8080 HELM kernel URL
api_key None HELM API key
fail_closed True Deny on HELM errors
collect_receipts True Keep receipt chain
timeout 30.0 HTTP timeout seconds

License

Apache-2.0

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

helm_semantic_kernel-0.4.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

helm_semantic_kernel-0.4.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file helm_semantic_kernel-0.4.0.tar.gz.

File metadata

  • Download URL: helm_semantic_kernel-0.4.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for helm_semantic_kernel-0.4.0.tar.gz
Algorithm Hash digest
SHA256 85c0feb216690506bbb6946df89f80a80cbd743057fbcdddd56404e2bf59f915
MD5 879cfc2dddc552e214f34bacb81c1a0f
BLAKE2b-256 a1b9cba3601f0dbd16c93bd0e8c1d0a8d6cd81a6026b6255013af49495e3d973

See more details on using hashes here.

File details

Details for the file helm_semantic_kernel-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for helm_semantic_kernel-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b4fde4bf722126618f8cc27310b8b57404978f27af3d21ea1996ad09ac2e762b
MD5 f05ce5046f873a81828627911c5fa802
BLAKE2b-256 49805699309787c54027ee4595106f93d78a9a083ad0af874eb8efd88493f7d7

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