From 8783e725c22723403523726ffa5fdd3280d6220c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=B0=E4=BA=AD=E5=8F=A4=E5=A2=A8?= <2443992009@qq.com> Date: Wed, 24 Sep 2025 16:40:05 +0800 Subject: [PATCH] fix: update import path for message classes --- src/oss/langchain/models.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oss/langchain/models.mdx b/src/oss/langchain/models.mdx index 803e04e3c..07fa8ff49 100644 --- a/src/oss/langchain/models.mdx +++ b/src/oss/langchain/models.mdx @@ -152,7 +152,7 @@ A list of messages can be provided to a model to represent conversation history. :::python ```python Conversation history -from langchain.messages import HumanMessage, AIMessage, SystemMessage +from langchain_core.messages import HumanMessage, AIMessage, SystemMessage conversation = [ SystemMessage("You are a helpful assistant that translates English to French."),