Skip to main content

langchain-proofslip

LangChain tools for ProofSlip — ephemeral receipt-based verification for AI agent workflows.

Agents use ProofSlip receipts to prove what happened before deciding what to do next. Receipts are ephemeral (24h max), verifiable, and include polling guidance for non-terminal states.

Install

pip install langchain-proofslip

Quick Start

from langchain_proofslip import ProofSlipToolkit

# Get all tools configured with your API key
toolkit = ProofSlipToolkit(api_key="ak_your_key")
tools = toolkit.get_tools()

# Use with any LangChain agent
from langchain.agents import AgentExecutor, create_tool_calling_agent
agent = create_tool_calling_agent(llm, tools, prompt)

Or use individual tools:

from langchain_proofslip import ProofSlipCreateReceipt, ProofSlipVerifyReceipt

create = ProofSlipCreateReceipt(api_key="ak_your_key")
verify = ProofSlipVerifyReceipt()

# Create a receipt
result = create.invoke({
    "type": "action",
    "status": "completed",
    "summary": "Deployed v2.1.0 to production",
})

# Verify it later
receipt = verify.invoke({"receipt_id": "rct_abc123"})

Tools

Tool Description Auth Required
proofslip_create_receipt Create a proof receipt (action, approval, handshake, resume, failure) Yes
proofslip_verify_receipt Verify a receipt by ID — full data including status and terminal state No
proofslip_check_status Lightweight polling for non-terminal receipts No

Configuration

Set your API key via constructor or environment variable:

# Via constructor
toolkit = ProofSlipToolkit(api_key="ak_your_key")

# Via environment variable
import os
os.environ["PROOFSLIP_API_KEY"] = "ak_your_key"
toolkit = ProofSlipToolkit()

Get a free API key at proofslip.ai (500 receipts/month).

Why Receipts?

In multi-agent workflows, agents need to verify what already happened before deciding what to do next. Without verification:

  • Agent B retries an action Agent A already completed (duplicate side effects)
  • Workflows break on restart because there's no proof of prior steps
  • Approvals get lost between agent handoffs

ProofSlip receipts solve this with ephemeral, verifiable proof objects that expire automatically.

Links

Metadata

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

Built distribution (wheel)

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

Total release size: 10.9 kB

Release files / langchain_proofslip-0.1.0.tar.gz

Download URL langchain_proofslip-0.1.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e9e6810af17b354fb6c771baae5fec863c530710697c091bfa2fff640609e375
BLAKE2b-256 checksum
How to use checksums
3335b6879a79cb9e46229987babc487882aec955fcaa73bd841343b13cdcf456
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

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

Download URL langchain_proofslip-0.1.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70e99032e9232d5beacf895d13751be884a90d61fcb1085d158b2efa6d97e87b
BLAKE2b-256 checksum
How to use checksums
cd1191845ce61a13fa63f7666fd17e071094d8b0f6c7abbc49de32471d2f8ad2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

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