From 0dea8cc62d449127bb9f15e0ce79ba502d31068a Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Wed, 6 Dec 2023 12:31:46 -0500 Subject: [PATCH] Update doc-string in RunnableWithMessageHistory (#14262) Update doc-string in RunnableWithMessageHistory --- libs/core/langchain_core/runnables/history.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/core/langchain_core/runnables/history.py b/libs/core/langchain_core/runnables/history.py index 52c04c0e104c7..ebca8748adfa1 100644 --- a/libs/core/langchain_core/runnables/history.py +++ b/libs/core/langchain_core/runnables/history.py @@ -46,8 +46,9 @@ class RunnableWithMessageHistory(RunnableBindingBase): from typing import Optional - from langchain_core.chat_models import ChatAnthropic - from langchain_core.memory.chat_message_histories import RedisChatMessageHistory + from langchain.chat_models import ChatAnthropic + from langchain.memory.chat_message_histories import RedisChatMessageHistory + from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder from langchain_core.runnables.history import RunnableWithMessageHistory