langchain-mnki
LangChain / LangGraph tools guarded by mnki (Agent Trust): every tool call is verified against the agent's delegated authority, with an evidence list, before it runs.
pip install langchain-mnki
import os
from mnki import AgentTrustClient, Guard
from langchain_mnki import guard_tools
from langgraph.prebuilt import create_react_agent
g = Guard(AgentTrustClient("https://mnki.com", api_key=os.environ["MNKI_API_KEY"]), agent="invoice-agent")
graph = create_react_agent(model, guard_tools(g, [refund, lookup]))
- Tools stay
BaseToolinstances (aGuardedToolsubclass), soToolNode,bind_toolsand isinstance checks work. - A refused call returns
{"error": "denied", "reasons": [...], "evidence": [...]}to the model;on_refused="throw"raises. - Calls that policy escalates wait for a human approval (phone app) and continue when approved.
- No account needed to try it:
Guard(world=demo_world(), agent="invoice-agent")runs the same verifier offline.
Pinned versions and the support level are in the compatibility matrix; every
integration path is on one page at https://mnki.com/docs/integrations. The implementation is
mnki.adapters.langchain in the mnki package; this distribution is its
LangChain-facing name. Apache-2.0.
Release files for langchain-mnki 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| langchain_mnki-0.1.5.tar.gz | 6.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_mnki-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.7 kB
Release files / langchain_mnki-0.1.5.tar.gz
| Download URL | langchain_mnki-0.1.5.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d574b817bdbe20806f37ce6cd8a28280601aba9b5929ddb7625c450dceab45c
|
|
BLAKE2b-256 checksum How to use checksums |
9540659b9ae1d4af59118500925a6d9a730f82748cb4796547b0fae65005880b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 17, 2026.
Transparency logRelease files / langchain_mnki-0.1.5-py3-none-any.whl
| Download URL | langchain_mnki-0.1.5-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0ccca17830379b8be958aea7a75da9e7056ab8521c5afb1e49021709ab780cf
|
|
BLAKE2b-256 checksum How to use checksums |
d7dcedce022dc6c5f6a1092bad666d6a49e6d3506ebeba23c7f7bf2407ec7085
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 17, 2026.
Transparency log