安装 LangChain 包:
npm install langchain @langchain/core
LangChain 提供了与数百个 LLM 和数千个其他集成的连接。这些集成存在于独立的提供商包中。例如:
# Installing the OpenAI integration
npm install @langchain/openai
# Installing the Anthropic integration
npm install @langchain/anthropic
有关可用集成的完整列表,请参阅集成选项卡

Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.