Skip to main content

goderash-adapter-langgraph

LangGraph / LangChain callback that emits Goderash audit events.

PyPI version PyPI downloads license

Drop-in adapter for LangGraph and LangChain. Plugs into LangChain's standard callback system, so every node, tool call, and LLM call your agent makes lands in Goderash — tamper-evident, hash-chained, regulator-ready.

Mirrors the TypeScript adapter @goderash/adapter-langgraph.

Install

pip install goderash-sdk goderash-adapter-langgraph langgraph

Quickstart

import os
from goderash_sdk import GoderashClient
from goderash_adapter_langgraph import GoderashCallback
from langgraph.graph import StateGraph

goderash = GoderashClient(
    api_key=os.environ["GODERASH_API_KEY"],
    tenant="acme",
    agent_id="support-agent-v1",
)

callback = GoderashCallback(goderash)

graph = StateGraph(...).compile()

graph.invoke(
    {"messages": [{"role": "user", "content": "help me"}]},
    config={"callbacks": [callback]},
)
# → root chain start  → agent.turn.started
# → tool calls         → tool.invoked / tool.completed
# → LLM calls          → llm.call.started / llm.call.completed
# → root chain end     → agent.turn.completed
# All hash-chained into the per-tenant ledger.

Events emitted

LangChain callback Goderash event
on_chain_start (root) agent.turn.started
on_chain_end (root) agent.turn.completed
on_tool_start tool.invoked
on_tool_end tool.completed
on_tool_error tool.failed
on_llm_start llm.call.started
on_llm_end llm.call.completed (with token usage)

Works for both sync .invoke and async .ainvoke paths.

Compatibility

  • langchain-core >= 0.3.0
  • langgraph >= 0.2.0
  • Python >= 3.10

Related packages

License

Apache-2.0

Metadata

Release files for goderash-adapter-langgraph 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for goderash-adapter-langgraph 0.1.1
File Size Uploaded
goderash_adapter_langgraph-0.1.1.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for goderash-adapter-langgraph 0.1.1
File Interpreter ABI Platform
goderash_adapter_langgraph-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / goderash_adapter_langgraph-0.1.1.tar.gz

Download URL goderash_adapter_langgraph-0.1.1.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c382bc28c82e9bcef12071a66978e5741b733dab8cbb9f90e5b95fdb06093717
BLAKE2b-256 checksum
How to use checksums
a50c3df8be1cb9df5fdb4ce57fb6d4aeb2ca6e6af19f8372b5b80db000f9c030
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / goderash_adapter_langgraph-0.1.1-py3-none-any.whl

Download URL goderash_adapter_langgraph-0.1.1-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b4668d63e352fb7dfe653622ec680bb00a129b78c2eac0cccd5a93074673a3d
BLAKE2b-256 checksum
How to use checksums
81d896d805bb07a8ecd6567098abd9e28838bb1881a528455997280c968d90ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

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