Metadata-Version: 2.5
Name: langchain-openentity
Version: 0.1.0
Summary: RuthlessSchemaGuard: LangChain middleware and HTTP transport guard that raises on malformed API and tool responses, with an optional signed ledger reporter.
Project-URL: Homepage, https://openentity.org
Project-URL: Documentation, https://oeis.dev
Project-URL: Source, https://github.com/moltbot-den/openentity
License-Expression: MIT
Requires-Python: >=3.11
Requires-Dist: httpx
Requires-Dist: jsonschema>=4.18
Requires-Dist: langchain>=1.4
Requires-Dist: pydantic>=2
Provides-Extra: aiohttp
Requires-Dist: aiohttp; extra == 'aiohttp'
Provides-Extra: ledger
Requires-Dist: openentity>=0.4; extra == 'ledger'
Provides-Extra: requests
Requires-Dist: requests; extra == 'requests'
Description-Content-Type: text/markdown

# 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.

```bash
pip install langchain-openentity
```

```python
from langchain_openentity import RuthlessSchemaGuard

guard = RuthlessSchemaGuard()
guard.register("get_pulls", list[Pull])
guard.guard_http()
agent = create_agent(model, 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>
