Skip to main content

langchain-openentity

RuthlessSchemaGuard for LangChain: middleware and HTTP transport guard that raise OpenEntitySchemaViolation on malformed tool and API responses, a dead-loop breaker, and an optional signed ledger reporter.

pip install langchain-openentity
import httpx
from langchain.agents import create_agent
from langchain_core.tools import tool
from langchain_openentity import RuthlessSchemaGuard
from pydantic import BaseModel

class Pull(BaseModel):
    number: int
    title: str

@tool
def get_pulls(repo: str) -> str:
    """List open pull requests of a GitHub repo."""
    return httpx.get(f"https://api.github.com/repos/{repo}/pulls", headers={"Accept": "application/json"}).text

guard = RuthlessSchemaGuard()
guard.register("get_pulls", list[Pull])
guard.guard_http()
agent = create_agent("anthropic:claude-sonnet-4-6", tools=[get_pulls], middleware=[guard])  # first in the list

Full documentation, the rule table and the ledger settings: https://github.com/moltbot-den/openentity/tree/main/integrations/langchain

Metadata

Release files for langchain-openentity 0.2.0

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

Source distribution (sdist)

Source distribution for langchain-openentity 0.2.0
File Size Uploaded Provenance Actions
langchain_openentity-0.2.0.tar.gz 207.6 kB With provenance Details for langchain_openentity-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-openentity 0.2.0
File Interpreter ABI Platform Actions
langchain_openentity-0.2.0-py3-none-any.whl Python 3 none any Details for langchain_openentity-0.2.0-py3-none-any.whl

Total release size: 222.1 kB

Release files / langchain_openentity-0.2.0.tar.gz

Download URL langchain_openentity-0.2.0.tar.gz
Size 207.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2d12477a47b5d1b1ecb4d232e4d5ad9ccf2a6c447a80d09e2ba761ddb2875bec
BLAKE2b-256 checksum
How to use checksums
f07376e7848d9a285a3ce16a2ffb176b6d2c36cd4ddd09e9c2fe37b6f83fdb5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / langchain_openentity-0.2.0-py3-none-any.whl

Download URL langchain_openentity-0.2.0-py3-none-any.whl
Size 14.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c985ff71f255344ee587d49c2855bfaf91ea3f7ad1cfd68e14f7da993bd435ee
BLAKE2b-256 checksum
How to use checksums
cf36f24952b987a6b4abafd5946c3b7695ae02736fd1015dae6366791c93ec6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Security for langchain-openentity 0.2.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for langchain_openentity-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

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