Skip to main content

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() and ainvoke()
  • 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


Download files

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

Source Distribution

substr8_langgraph-0.1.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

substr8_langgraph-0.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

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

Hashes for substr8_langgraph-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bd1d122c56604367fd3ab868b3aed2243b55de9899cc31918f87dbd342d30dba
MD5 b2ea65b414dbba256049ffc51af78901
BLAKE2b-256 8ee0cca5c1e861d7556dc81275cb53929cc6000d4dbd82a765ffb3c5e4aa9caf

See more details on using hashes here.

File details

Details for the file substr8_langgraph-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for substr8_langgraph-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2bc14bb86e8da2668e4b263043715f1f5bc34992b396d145e6bea9bc0d56956
MD5 f8d76355260d483355dfb21a23fe70c0
BLAKE2b-256 3bead134f5f7a1b6975daba5ab7459747b9a69d15fa1a1c3faaa7d7eda6fe3af

See more details on using hashes here.

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