Skip to main content

bench-langchain

LangChain callback adapter for Bench. It records chain, LLM, and tool runs through the zero-dependency bench-observe SDK.

python -m pip install bench-langchain
import os
from bench import observe
from bench_langchain import BenchCallbackHandler

agent = observe(
    api_key=os.environ["BENCH_KEY"],
    agent="my-langchain-agent",
    framework="langchain",
)
handler = BenchCallbackHandler(agent)

result = chain.invoke(
    {"input": "Research this question"},
    config={"callbacks": [handler]},
)

New agents hide raw inputs and outputs by default. Bench also redacts common secret and PII patterns before storage.

Metadata

Release files for bench-langchain 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 bench-langchain 0.1.0
File Size Uploaded
bench_langchain-0.1.0.tar.gz 2.6 kB Details

Built distribution (wheel)

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

Total release size: 5.6 kB

Release files / bench_langchain-0.1.0.tar.gz

Download URL bench_langchain-0.1.0.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7ed2054b4c7541a469756814756e32bc288607c78d3d846a91e7d200a7c56d01
BLAKE2b-256 checksum
How to use checksums
47842f6d06ad08ad3d588ce3244ab258100180531dfe7fb41a91c286ced87049
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 1, 2026.

Transparency log

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

Download URL bench_langchain-0.1.0-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f0243d49dbb6e16a9d84b4012f044d4cf920f4149571c6def40494083539d2e0
BLAKE2b-256 checksum
How to use checksums
5388f7bde9844d6971243bc685723fb04f7002a82fa5f0076fdccc4b26dfffc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 1, 2026.

Transparency log

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