skillfed

braintrust-langchain

DEPRECATED: LangChain integration is now included in the main braintrust package. Install braintrust instead.

braintrust-langchain v0.3.0 2.3M downloads/30d#3,118 on PyPI16
Permissive license MIT Active released

What it is and what it does

braintrust-langchain is a deprecated integration package that adds automatic logging of LangChain executions to Braintrust. It works by providing a callback handler that can be attached globally to all LangChain components or passed explicitly to individual calls, capturing LLM calls, chat interactions, chain executions, tool usage, and state management events.

The package is no longer maintained as a standalone tool—its functionality has been integrated directly into the main braintrust package. Users should migrate by removing this package and installing or upgrading braintrust, then updating imports to use braintrust.integrations.langchain instead. The callback API remains the same, so migration requires only dependency and import path changes.

Use it for:

  • Migrate existing LangChain + Braintrust projects from this deprecated package to the integrated braintrust version.
  • Log LangChain chain executions and LLM calls to Braintrust for debugging and evaluation.
  • Capture LLM responses and agent tool usage automatically without modifying chain code.
  • Set up global callback handlers to trace all LangChain components without per-call configuration.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides a LangChain callback handler to log LangChain executions to Braintrust for tracing and evaluation—now deprecated in favor of the integration built into the main braintrust package.

No—do not install this package. It is deprecated and inactive. Install or upgrade the main braintrust package instead and use braintrust.integrations.langchain. The migration is straightforward (import path and dependency change only), and the main package receives active maintenance while this one does not.

Install

braintrust-langchain on PyPI

pip

pip install braintrust-langchain

uv

uv add braintrust-langchain

poetry

poetry add braintrust-langchain

Installing braintrust-langchain

Before you install

Low friction install with only two runtime dependencies. However, the package is marked inactive—the integration has been moved into the main braintrust package, making this a migration candidate rather than a new installation target.

License in practice

MIT license permits permissive use, modification, and distribution with minimal restrictions.

Quickstart

pip install braintrust-langchain

from braintrust_langchain import BraintrustCallbackHandler, set_global_handler
from braintrust import init_logger

init_logger(project="your-project-name")
handler = BraintrustCallbackHandler()
set_global_handler(handler)

Requires Python >= 3.10 and BRAINTRUST_API_KEY environment variable set.

Verify before relying

  • Whether the callback API remains fully compatible between this package and braintrust's integrated version.
  • Feature parity of streaming LLM calls and agent/tool usage logging across both versions.
  • Current maintenance status and feature completeness of braintrust.integrations.langchain.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 2 — braintrust, langchain
Maintenance actively maintained — 135 days since the last release
Last repo commit
First released
Downloads 2,346,864/month — #3,118 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: braintrust_langchain-0.3.0-py3-none-any.whl

Keywords: braintrust, langchain, llm, tracing, ai, agents, deprecated

Development Status :: 7 - InactiveOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12

Tags

langchain braintrust logginglangchain callback handler tracingllm execution logginglangchain integration monitoringbraintrust langchain deprecatedchain execution tracinglangchain observability
deprecatedlangchain-integrationllm-tracing

More Artificial Intelligence packages

Further reading