Update import statements in memories.py
This commit is contained in:
parent
34e116ddf2
commit
96d12b6259
2 changed files with 512 additions and 451 deletions
952
poetry.lock
generated
952
poetry.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,14 +1,15 @@
|
||||||
from typing import Optional
|
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.field.base import TemplateField
|
||||||
from langflow.template.frontend_node.base import FrontendNode
|
from langflow.template.frontend_node.base import FrontendNode
|
||||||
from langflow.template.frontend_node.constants import INPUT_KEY_INFO, OUTPUT_KEY_INFO
|
from langflow.template.frontend_node.constants import INPUT_KEY_INFO, OUTPUT_KEY_INFO
|
||||||
from langflow.template.template.base import Template
|
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):
|
class MemoryFrontendNode(FrontendNode):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue