Skip to main content

truthlocks-langchain

Cryptographic receipt generation for every LangChain chain, agent, and tool invocation. Part of the Truthlocks MAIP (Machine-Attested Identity Protocol) ecosystem.

Installation

pip install truthlocks-langchain

Quick Start

from truthlocks_langchain import MAIPCallbackHandler

# Create the receipt handler
handler = MAIPCallbackHandler()

# Attach to any LangChain chain
chain.invoke(input, config={"callbacks": [handler]})

# Every LLM call, tool use, and chain step now produces
# a cryptographic receipt anchored to a tamper-proof log

API

Class Description
MAIPCallbackHandler LangChain callback that auto-generates MAIP receipts for every event in a chain run
MAIPRunnableWrapper Wraps any LangChain Runnable to emit receipts on .invoke() / .stream() / .batch()
MAIPTracer Full tracing integration that produces a receipt tree matching the LangChain call graph

What You Get

  • Tamper-proof audit trail for every LLM call, retrieval, and tool invocation
  • Cryptographic receipts anchored to a transparency log with sub-40 ms latency
  • Zero-config drop-in integration -- add the callback and receipts flow automatically
  • Compliance-ready evidence packages for SOC 2 Type II, ISO 27001, and EU AI Act

How It Works

truthlocks-langchain is a thin wrapper around maip-ai-connectors, the core Truthlocks MAIP SDK for Python. It re-exports the LangChain-specific classes so you can install only what you need.

Requirements

Documentation

Full guides, API reference, and examples: docs.truthlocks.com/sdk/langchain

License

Apache 2.0 -- see LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

truthlocks_langchain-1.0.2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

truthlocks_langchain-1.0.2-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file truthlocks_langchain-1.0.2.tar.gz.

File metadata

  • Download URL: truthlocks_langchain-1.0.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for truthlocks_langchain-1.0.2.tar.gz
Algorithm Hash digest
SHA256 a930402c6f0ef39cc417626da3788d64fed81538baa7cb53acfa9165153ea03f
MD5 ca5ba0acf25a3005bf234b8012753647
BLAKE2b-256 f4c4464da12971f158b791ec999de622ddb3d0cb5aeaa3dbfe3d82631f6ed6d2

See more details on using hashes here.

File details

Details for the file truthlocks_langchain-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for truthlocks_langchain-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d305dedacd3af838e57495cafaf33b8e1c877cab79dc1280bceb12b76065406c
MD5 43e2b288fde7a5385fddba1292b1637b
BLAKE2b-256 89166091652b6126955fb950701f72def18f00585537bbe9053638a89f94bc40

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 files

1.0.1

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page