Skip to main content

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 BaseTool instances (a GuardedTool subclass), so ToolNode, bind_tools and 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.6

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-mnki 0.1.6
File Size Uploaded
langchain_mnki-0.1.6.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-mnki 0.1.6
File Interpreter ABI Platform
langchain_mnki-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 13.7 kB

Release files / langchain_mnki-0.1.6.tar.gz

Download URL langchain_mnki-0.1.6.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
64a1a0704f0676e2297727bf66f0f18bfe251648e5240f4c33821ec9b8c1b077
BLAKE2b-256 checksum
How to use checksums
74cfc46052f2d67abd2cef1d11cea70eeb2ded73bf2f1df97270ca2b4b727ffc
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

Release files / langchain_mnki-0.1.6-py3-none-any.whl

Download URL langchain_mnki-0.1.6-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0ea035522a0edf85e081249e9d4d2806706db7a7dc582fe7f776c33ccc21f97
BLAKE2b-256 checksum
How to use checksums
db159465db9631284118d0ee348144f659ed3b7ae62456a41ed16b423e3d7558
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

Release history Release notifications | RSS feed

0.3.0

2 release files

This release

0.1.6 This release

2 release files

0.1.5

2 release files

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