🚀 feat(constants.py): import BaseChatMemory from langchain.memory.chat_memory module to add support for chat memory in custom interfaces
This commit is contained in:
parent
5d226d43d1
commit
1dcdc02e4f
1 changed files with 2 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ from langchain.tools import Tool
|
||||||
from langchain.vectorstores.base import VectorStore
|
from langchain.vectorstores.base import VectorStore
|
||||||
from langchain.schema import BaseOutputParser
|
from langchain.schema import BaseOutputParser
|
||||||
from langchain.schema.memory import BaseMemory
|
from langchain.schema.memory import BaseMemory
|
||||||
|
from langchain.memory.chat_memory import BaseChatMemory
|
||||||
|
|
||||||
LANGCHAIN_BASE_TYPES = {
|
LANGCHAIN_BASE_TYPES = {
|
||||||
"Chain": Chain,
|
"Chain": Chain,
|
||||||
|
|
@ -24,6 +24,7 @@ LANGCHAIN_BASE_TYPES = {
|
||||||
"BaseRetriever": BaseRetriever,
|
"BaseRetriever": BaseRetriever,
|
||||||
"BaseOutputParser": BaseOutputParser,
|
"BaseOutputParser": BaseOutputParser,
|
||||||
"BaseMemory": BaseMemory,
|
"BaseMemory": BaseMemory,
|
||||||
|
"BaseChatMemory": BaseChatMemory,
|
||||||
}
|
}
|
||||||
|
|
||||||
# Langchain base types plus Python base types
|
# Langchain base types plus Python base types
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue