Skip to main content
npm

Overview

The @fiddler-ai/langchain package provides LangChain JS instrumentation for Fiddler AI observability. It re-exports the callback handler and instrumentor from @fiddler-ai/langgraph under a LangChain-branded API, enabling automatic trace capture for LangChain applications with zero code changes to existing chains.
npm install @fiddler-ai/langchain
import { LangChainInstrumentor, setConversationId } from '@fiddler-ai/langchain';

Components

Core

The full LangChain JS instrumentation surface, re-exported from @fiddler-ai/langgraph under a LangChain-branded API. LangChainInstrumentor is the one-time setup and FiddlerCallbackHandler emits spans; the setConversationId, setLlmContext, and addSessionAttributes families propagate conversation, session, and retrieval context, while the remaining utilities handle message formatting and serialization.