LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangSmith
  • Client
  • Run Trees
  • Traceable
  • Evaluation
  • Schemas
  • Langchain
  • Jest
  • Vitest
  • Wrappers
  • Anonymizer
  • Traceable
  • Jestlike
  • Vercel
  • Anthropic
  • Sandbox
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangSmith
ClientRun TreesTraceableEvaluationSchemasLangchainJestVitestWrappersAnonymizerTraceableJestlikeVercelAnthropicSandbox
Language
Theme
JavaScriptlangsmithlangchain
Module●Since v0.1

langchain

Copy
import { ... } from "langsmith/langchain";

Functions

function
getLangchainCallbacks→ Promise<any>

Converts the current run tree active within a traceable-wrapped function into a LangChain compatible callback manager. This is useful to handoff tracing from LangSmith to LangChain Runnables and LLMs.

Classes

deprecatedclass
RunnableTraceable

RunnableTraceable is a Runnable that wraps a traceable function. This allows adding Langsmith traced functions into LangChain sequences.

View source on GitHub