Skip to main content
The @braintrust/langchain-js package provides seamless integration between Braintrust and LangChain.js.

Installation

Quick start

API Reference

Functions

setGlobalHandler

setGlobalHandler function.

Classes

BraintrustCallbackHandler

A Braintrust tracer for LangChain.js that logs LLM calls, chains, and tools.

Source Code

For the complete source code and additional examples, visit the Braintrust JavaScript SDK repository.