Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Join us May 13th & May 14th at Interrupt, the Agent Conference by LangChain. Buy tickets >
TypeScript
npm install langchain @langchain/core # 需要 Node.js 20+
pnpm add langchain @langchain/core # 需要 Node.js 20+
yarn add langchain @langchain/core # 需要 Node.js 20+
bun add langchain @langchain/core # 需要 Bun v1.0.0+
# 安装 OpenAI 集成 npm install @langchain/openai # 安装 Anthropic 集成 npm install @langchain/anthropic
# 安装 OpenAI 集成 pnpm install @langchain/openai # 安装 Anthropic 集成 pnpm install @langchain/anthropic
# 安装 OpenAI 集成 yarn add @langchain/openai # 安装 Anthropic 集成 yarn add @langchain/anthropic
# 安装 OpenAI 集成 bun add @langchain/openai # 安装 Anthropic 集成 bun add @langchain/anthropic