LangGraph adapter for Substr8 RunProof generation
Project description
substr8-langgraph
LangGraph adapter for Substr8 RunProof generation.
Installation
pip install substr8-langgraph
Quick Start
from langgraph.graph import StateGraph
from substr8_langgraph import instrument_graph
# Build your graph
graph = StateGraph(...)
compiled = graph.compile()
# Instrument it
instrumented = instrument_graph(
compiled,
agent_id="my-agent",
project="my-project",
)
# Execute - RunProof is generated automatically
result = instrumented.invoke({"input": "hello"})
print(result["run_id"]) # Unique run identifier
print(result["proof_status"]) # "verified" if valid
print(result["proof"]) # Full RunProof object
Features
- Automatic event capture: Tool calls, LLM interactions, node transitions
- Hash chain integrity: Every event is cryptographically linked
- Merkle root commitment: Efficient verification of complete trace
- Sync & async support: Works with
invoke()andainvoke() - Streaming support: Proof emitted as final event
RunProof Schema
Proofs follow the runproof/v2 schema. See docs.substr8labs.com/sdk for details.
License
MIT
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 substr8_langgraph-0.1.0.tar.gz.
File metadata
- Download URL: substr8_langgraph-0.1.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd1d122c56604367fd3ab868b3aed2243b55de9899cc31918f87dbd342d30dba
|
|
| MD5 |
b2ea65b414dbba256049ffc51af78901
|
|
| BLAKE2b-256 |
8ee0cca5c1e861d7556dc81275cb53929cc6000d4dbd82a765ffb3c5e4aa9caf
|
File details
Details for the file substr8_langgraph-0.1.0-py3-none-any.whl.
File metadata
- Download URL: substr8_langgraph-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2bc14bb86e8da2668e4b263043715f1f5bc34992b396d145e6bea9bc0d56956
|
|
| MD5 |
f8d76355260d483355dfb21a23fe70c0
|
|
| BLAKE2b-256 |
3bead134f5f7a1b6975daba5ab7459747b9a69d15fa1a1c3faaa7d7eda6fe3af
|