Merge branch 'dev' into python_custom_node_component

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-08-01 15:31:44 -03:00 • committed by GitHub
commit d7a13755b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 156 additions and 408 deletions

View file

@ -153,6 +153,8 @@ memories:
documentation: "https://python.langchain.com/docs/modules/memory/how_to/vectorstore_retriever_memory"
MongoDBChatMessageHistory:
documentation: "https://python.langchain.com/docs/modules/memory/integrations/mongodb_chat_message_history"
MotorheadMemory:
documentation: "https://python.langchain.com/docs/integrations/memory/motorhead_memory"
prompts:
ChatMessagePromptTemplate:
documentation: "https://python.langchain.com/docs/modules/model_io/prompts/prompt_templates/msg_prompt_templates"

View file

@ -94,6 +94,14 @@ class MemoryFrontendNode(FrontendNode):
field.show = False
field.required = False
if name == "MotorheadMemory":
if field.name == "chat_memory":
field.show = False
field.required = False
elif field.name == "client_id":
field.show = True
field.advanced = False
class PostgresChatMessageHistoryFrontendNode(MemoryFrontendNode):
name: str = "PostgresChatMessageHistory"