Skip to main content

pruv-langchain

pruv-langchain Python 3.10+ License: MIT

Cryptographic verification for LangChain agents. Every tool call, LLM invocation, chain execution, and agent action — automatically recorded into a pruv identity chain.

pip install pruv-langchain

Usage

from pruv_langchain import LangChainWrapper

wrapped = LangChainWrapper(agent, agent_id="agent-id", api_key="pv_live_...")
result = wrapped.invoke({"input": "deploy to production"})
receipt = wrapped.receipt()

Hooks into LangChain's native BaseCallbackHandler. Your agent code stays unchanged. pruv runs underneath it.

How it works

PruvCallbackHandler intercepts LangChain lifecycle events:

  • on_tool_start / on_tool_end — tool executions
  • on_llm_start — LLM invocations
  • on_agent_action — agent decisions
  • on_chain_start / on_chain_end — chain executions
  • on_retriever_start — retriever queries

Every event is posted to the pruv identity chain via POST /api/identity/act. The chain is tamper-evident — modify one entry and verification detects exactly where.

Links

Metadata

Release files for pruv-langchain 0.1.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 pruv-langchain 0.1.0
File Size Uploaded
pruv_langchain-0.1.0.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pruv-langchain 0.1.0
File Interpreter ABI Platform
pruv_langchain-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / pruv_langchain-0.1.0.tar.gz

Download URL pruv_langchain-0.1.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c681547164b398b75fb8db1b5cbf7dac5a87ad4776d9ae5573dbdd30e9b7ffad
BLAKE2b-256 checksum
How to use checksums
36c339f5a6cd1a67f007e0f169d07eb7c39be2261465a9f6cc7bc03af615b65e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Feb 23, 2026.

Transparency log

Release files / pruv_langchain-0.1.0-py3-none-any.whl

Download URL pruv_langchain-0.1.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2a3de505b1814de4a7086336a38791c0c7a0d7c3c2b8434cbffc595e20afd14
BLAKE2b-256 checksum
How to use checksums
15e3da7cc58d47c7a9c7edda25c5f9985af84d45d27f2a835da3bebd3d7e9fbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Feb 23, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

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