Update my_memory_logic.py
Browse files- my_memory_logic.py +2 -2
my_memory_logic.py
CHANGED
|
@@ -5,9 +5,9 @@ import os
|
|
| 5 |
# Import the PipelineRunnable from pipeline.py
|
| 6 |
from pipeline import pipeline_runnable
|
| 7 |
|
| 8 |
-
from
|
| 9 |
from langchain_community.chat_message_histories import ChatMessageHistory
|
| 10 |
-
from
|
| 11 |
|
| 12 |
###############################################################################
|
| 13 |
# 1) In-memory store: session_id -> ChatMessageHistory
|
|
|
|
| 5 |
# Import the PipelineRunnable from pipeline.py
|
| 6 |
from pipeline import pipeline_runnable
|
| 7 |
|
| 8 |
+
from langchain_core.chat_history import BaseChatMessageHistory
|
| 9 |
from langchain_community.chat_message_histories import ChatMessageHistory
|
| 10 |
+
from langchain_core.runnables.history import RunnableWithMessageHistory
|
| 11 |
|
| 12 |
###############################################################################
|
| 13 |
# 1) In-memory store: session_id -> ChatMessageHistory
|