All functionality related to Anthropic models. Anthropic is an AI safety and research company, and is the creator of Claude. This page covers all integrations between Anthropic models and LangChain.Documentation Index
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
Use this file to discover all available pages before exploring further.
Prompting best practices
Anthropic models have several prompting best practices compared to OpenAI models. System Messages may only be the first message Anthropic models require any system messages to be the first one in your prompts.ChatAnthropic
ChatAnthropic is a subclass of LangChain’s ChatModel, meaning it works best with ChatPromptTemplate.
You can import this wrapper with the following code:
npm
ChatPromptTemplates.
Here is an example below of doing that:
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

