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

Built distribution (wheel)

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

Total release size: 13.7 kB

Release files / langchain_mnki-0.3.0.tar.gz

Download URL langchain_mnki-0.3.0.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e0ec22696321a0052d878c4b52fa243c182d30a721660b15639a5317538c69d9
BLAKE2b-256 checksum
How to use checksums
4d3e46e0348fc23c22d516507e328004aa07644c81069df47e0c4328c54782f4
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 20, 2026.

Transparency log

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

Download URL langchain_mnki-0.3.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3490a8bd95ffcc80c89495dacdc2b0678a54610abed0726fef5f72b087ecb07f
BLAKE2b-256 checksum
How to use checksums
6bd164fdb3e0293a307044fc5c99e3a6609758579c316e2b5a857180704d74ce
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 20, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.1.6

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