Skip to main content

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

Project description

helm-langchain

HELM governance adapter for LangChain.

What it does

Wraps LangChain tools with HELM governance:

  1. Every tool call 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_langchain import HelmToolWrapper

wrapper = HelmToolWrapper(helm_url="http://localhost:8080")
governed_tools = wrapper.wrap_tools(my_tools)

# Use in a LangChain agent
agent = create_react_agent(llm, governed_tools)

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_langchain-0.4.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

helm_langchain-0.4.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for helm_langchain-0.4.0.tar.gz
Algorithm Hash digest
SHA256 67a5b75642b39906f03c19834d3ca7988138b587ccca7669fb2d92736787f746
MD5 610741f2ddc2a5c81138c4d05c6375e5
BLAKE2b-256 1c5c3a6fbaa80f41ecbf1419adf09fa98d52a65b900d46f93178f482a55c86f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: helm_langchain-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for helm_langchain-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 72689238f3d845d6f00065e5d99eb37ab381f03dd9ec621fbd592300cb4f635a
MD5 0bf2400b6ffffad01a986bc172a98170
BLAKE2b-256 19c38966e100990caaaa17b8617b7e2d2027a7cdd0ccab590196c3add54f7f66

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