Skip to content

Commit 11f12f8

Browse files
committed
fix: update import path for message classes
1 parent 2bca5a2 commit 11f12f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/oss/langchain/models.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ A list of messages can be provided to a model to represent conversation history.
152152

153153
:::python
154154
```python Conversation history
155-
from langchain.messages import HumanMessage, AIMessage, SystemMessage
155+
from langchain_core.messages import HumanMessage, AIMessage, SystemMessage
156156

157157
conversation = [
158158
SystemMessage("You are a helpful assistant that translates English to French."),

0 commit comments

Comments
 (0)