Skip to main content

pruv verification layer for LangChain agents

Project description

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

Project details


Download files

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

Source Distribution

pruv_langchain-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

pruv_langchain-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for pruv_langchain-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c681547164b398b75fb8db1b5cbf7dac5a87ad4776d9ae5573dbdd30e9b7ffad
MD5 741bd427200200fb6e1e940900238e6a
BLAKE2b-256 36c339f5a6cd1a67f007e0f169d07eb7c39be2261465a9f6cc7bc03af615b65e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pruv_langchain-0.1.0.tar.gz:

Publisher: publish.yml on mintingpressbuilds/pruv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pruv_langchain-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c2a3de505b1814de4a7086336a38791c0c7a0d7c3c2b8434cbffc595e20afd14
MD5 09dc0f66e6dbfd9c46eebb6014bd0804
BLAKE2b-256 15e3da7cc58d47c7a9c7edda25c5f9985af84d45d27f2a835da3bebd3d7e9fbf

See more details on using hashes here.

Provenance

The following attestation bundles were made for pruv_langchain-0.1.0-py3-none-any.whl:

Publisher: publish.yml on mintingpressbuilds/pruv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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