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:
将这些文档连接到 Claude、VSCode 等工具,通过 MCP 获取实时答案。

