Update import statements in memories.py

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-12-19 13:38:33 -03:00
commit 96d12b6259
2 changed files with 512 additions and 451 deletions

952
poetry.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,14 +1,15 @@
from typing import Optional
from langchain_community.chat_message_histories.mongodb import (
DEFAULT_COLLECTION_NAME,
DEFAULT_DBNAME,
)
from langchain_community.chat_message_histories.postgres import DEFAULT_CONNECTION_STRING
from langflow.template.field.base import TemplateField
from langflow.template.frontend_node.base import FrontendNode
from langflow.template.frontend_node.constants import INPUT_KEY_INFO, OUTPUT_KEY_INFO
from langflow.template.template.base import Template
from langchain.memory.chat_message_histories.postgres import DEFAULT_CONNECTION_STRING
from langchain.memory.chat_message_histories.mongodb import (
DEFAULT_COLLECTION_NAME,
DEFAULT_DBNAME,
)
class MemoryFrontendNode(FrontendNode):