LangChain tools for ProofSlip — ephemeral receipt-based verification for AI agent workflows
Project description
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
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 langchain_proofslip-0.1.0.tar.gz.
File metadata
- Download URL: langchain_proofslip-0.1.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9e6810af17b354fb6c771baae5fec863c530710697c091bfa2fff640609e375
|
|
| MD5 |
16d82a5e43ff675828381dcf59148022
|
|
| BLAKE2b-256 |
3335b6879a79cb9e46229987babc487882aec955fcaa73bd841343b13cdcf456
|
File details
Details for the file langchain_proofslip-0.1.0-py3-none-any.whl.
File metadata
- Download URL: langchain_proofslip-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70e99032e9232d5beacf895d13751be884a90d61fcb1085d158b2efa6d97e87b
|
|
| MD5 |
20275e970b857f2fecd62648fdf769e5
|
|
| BLAKE2b-256 |
cd1191845ce61a13fa63f7666fd17e071094d8b0f6c7abbc49de32471d2f8ad2
|