pruv verification layer for LangChain agents
Project description
pruv-langchain
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 executionson_llm_start— LLM invocationson_agent_action— agent decisionson_chain_start/on_chain_end— chain executionson_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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pruv_langchain-0.1.0.tar.gz.
File metadata
- Download URL: pruv_langchain-0.1.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c681547164b398b75fb8db1b5cbf7dac5a87ad4776d9ae5573dbdd30e9b7ffad
|
|
| MD5 |
741bd427200200fb6e1e940900238e6a
|
|
| BLAKE2b-256 |
36c339f5a6cd1a67f007e0f169d07eb7c39be2261465a9f6cc7bc03af615b65e
|
Provenance
The following attestation bundles were made for pruv_langchain-0.1.0.tar.gz:
Publisher:
publish.yml on mintingpressbuilds/pruv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pruv_langchain-0.1.0.tar.gz -
Subject digest:
c681547164b398b75fb8db1b5cbf7dac5a87ad4776d9ae5573dbdd30e9b7ffad - Sigstore transparency entry: 983623113
- Sigstore integration time:
-
Permalink:
mintingpressbuilds/pruv@25f735c4aeb10c4773d581de396430819f9a818f -
Branch / Tag:
refs/tags/langchain-v0.1.0 - Owner: https://github.com/mintingpressbuilds
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@25f735c4aeb10c4773d581de396430819f9a818f -
Trigger Event:
release
-
Statement type:
File details
Details for the file pruv_langchain-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pruv_langchain-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2a3de505b1814de4a7086336a38791c0c7a0d7c3c2b8434cbffc595e20afd14
|
|
| MD5 |
09dc0f66e6dbfd9c46eebb6014bd0804
|
|
| BLAKE2b-256 |
15e3da7cc58d47c7a9c7edda25c5f9985af84d45d27f2a835da3bebd3d7e9fbf
|
Provenance
The following attestation bundles were made for pruv_langchain-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on mintingpressbuilds/pruv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pruv_langchain-0.1.0-py3-none-any.whl -
Subject digest:
c2a3de505b1814de4a7086336a38791c0c7a0d7c3c2b8434cbffc595e20afd14 - Sigstore transparency entry: 983623117
- Sigstore integration time:
-
Permalink:
mintingpressbuilds/pruv@25f735c4aeb10c4773d581de396430819f9a818f -
Branch / Tag:
refs/tags/langchain-v0.1.0 - Owner: https://github.com/mintingpressbuilds
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@25f735c4aeb10c4773d581de396430819f9a818f -
Trigger Event:
release
-
Statement type: