fix outdated component on memory conversation

This commit is contained in:
cristhianzl 2024-06-12 12:10:50 -03:00
commit b48caa0b82
2 changed files with 218 additions and 612 deletions

View file

@ -5,176 +5,131 @@
"className": "stroke-gray-900 stroke-connection",
"data": {
"sourceHandle": {
"baseClasses": [
"str",
"Text",
"object"
],
"baseClasses": ["str", "Text", "object"],
"dataType": "MemoryComponent",
"id": "MemoryComponent-cdA1J"
"id": "MemoryComponent-iDkC0"
},
"targetHandle": {
"fieldName": "context",
"id": "Prompt-ODkUx",
"inputTypes": [
"Document",
"BaseOutputParser",
"Record",
"Text"
],
"id": "Prompt-19lCm",
"inputTypes": ["Document", "BaseOutputParser", "Record", "Text"],
"type": "str"
}
},
"id": "reactflow__edge-MemoryComponent-cdA1J{œbaseClassesœ:[œstrœ,œTextœ,œobjectœ],œdataTypeœ:œMemoryComponentœ,œidœ:œMemoryComponent-cdA1Jœ}-Prompt-ODkUx{œfieldNameœ:œcontextœ,œidœ:œPrompt-ODkUxœ,œinputTypesœ:[œDocumentœ,œBaseOutputParserœ,œRecordœ,œTextœ],œtypeœ:œstrœ}",
"id": "reactflow__edge-MemoryComponent-iDkC0{œbaseClassesœ:[œstrœ,œTextœ,œobjectœ],œdataTypeœ:œMemoryComponentœ,œidœ:œMemoryComponent-iDkC0œ}-Prompt-19lCm{œfieldNameœ:œcontextœ,œidœ:œPrompt-19lCmœ,œinputTypesœ:[œDocumentœ,œBaseOutputParserœ,œRecordœ,œTextœ],œtypeœ:œstrœ}",
"selected": false,
"source": "MemoryComponent-cdA1J",
"sourceHandle": "{œbaseClassesœ: [œstrœ, œTextœ, œobjectœ], œdataTypeœ: œMemoryComponentœ, œidœ: œMemoryComponent-cdA1Jœ}",
"source": "MemoryComponent-iDkC0",
"sourceHandle": "{œbaseClassesœ: [œstrœ, œTextœ, œobjectœ], œdataTypeœ: œMemoryComponentœ, œidœ: œMemoryComponent-iDkC0œ}",
"style": {
"stroke": "#555"
},
"target": "Prompt-ODkUx",
"targetHandle": "{œfieldNameœ: œcontextœ, œidœ: œPrompt-ODkUxœ, œinputTypesœ: [œDocumentœ, œBaseOutputParserœ, œRecordœ, œTextœ], œtypeœ: œstrœ}"
"target": "Prompt-19lCm",
"targetHandle": "{œfieldNameœ: œcontextœ, œidœ: œPrompt-19lCmœ, œinputTypesœ: [œDocumentœ, œBaseOutputParserœ, œRecordœ, œTextœ], œtypeœ: œstrœ}"
},
{
"className": "stroke-gray-900 stroke-connection",
"className": "",
"data": {
"sourceHandle": {
"baseClasses": [
"Text",
"object",
"Record",
"str"
],
"baseClasses": ["Text", "object", "Record", "str"],
"dataType": "ChatInput",
"id": "ChatInput-t7F8v"
"id": "ChatInput-Z6G1Z"
},
"targetHandle": {
"fieldName": "user_message",
"id": "Prompt-ODkUx",
"inputTypes": [
"Document",
"BaseOutputParser",
"Record",
"Text"
],
"id": "Prompt-19lCm",
"inputTypes": ["Document", "BaseOutputParser", "Record", "Text"],
"type": "str"
}
},
"id": "reactflow__edge-ChatInput-t7F8v{œbaseClassesœ:[œTextœ,œobjectœ,œRecordœ,œstrœ],œdataTypeœ:œChatInputœ,œidœ:œChatInput-t7F8vœ}-Prompt-ODkUx{œfieldNameœ:œuser_messageœ,œidœ:œPrompt-ODkUxœ,œinputTypesœ:[œDocumentœ,œBaseOutputParserœ,œRecordœ,œTextœ],œtypeœ:œstrœ}",
"id": "reactflow__edge-ChatInput-Z6G1Z{œbaseClassesœ:[œTextœ,œobjectœ,œRecordœ,œstrœ],œdataTypeœ:œChatInputœ,œidœ:œChatInput-Z6G1Zœ}-Prompt-19lCm{œfieldNameœ:œuser_messageœ,œidœ:œPrompt-19lCmœ,œinputTypesœ:[œDocumentœ,œBaseOutputParserœ,œRecordœ,œTextœ],œtypeœ:œstrœ}",
"selected": false,
"source": "ChatInput-t7F8v",
"sourceHandle": "{œbaseClassesœ: [œTextœ, œobjectœ, œRecordœ, œstrœ], œdataTypeœ: œChatInputœ, œidœ: œChatInput-t7F8vœ}",
"source": "ChatInput-Z6G1Z",
"sourceHandle": "{œbaseClassesœ: [œTextœ, œobjectœ, œRecordœ, œstrœ], œdataTypeœ: œChatInputœ, œidœ: œChatInput-Z6G1Zœ}",
"style": {
"stroke": "#555"
},
"target": "Prompt-ODkUx",
"targetHandle": "{œfieldNameœ: œuser_messageœ, œidœ: œPrompt-ODkUxœ, œinputTypesœ: [œDocumentœ, œBaseOutputParserœ, œRecordœ, œTextœ], œtypeœ: œstrœ}"
"target": "Prompt-19lCm",
"targetHandle": "{œfieldNameœ: œuser_messageœ, œidœ: œPrompt-19lCmœ, œinputTypesœ: [œDocumentœ, œBaseOutputParserœ, œRecordœ, œTextœ], œtypeœ: œstrœ}"
},
{
"className": "stroke-gray-900 stroke-connection",
"className": "",
"data": {
"sourceHandle": {
"baseClasses": [
"Text",
"str",
"object"
],
"baseClasses": ["Text", "str", "object"],
"dataType": "Prompt",
"id": "Prompt-ODkUx"
"id": "Prompt-19lCm"
},
"targetHandle": {
"fieldName": "input_value",
"id": "OpenAIModel-9RykF",
"inputTypes": [
"Text",
"Record",
"Prompt"
],
"id": "OpenAIModel-1v5Hz",
"inputTypes": ["Text", "Record", "Prompt"],
"type": "str"
}
},
"id": "reactflow__edge-Prompt-ODkUx{œbaseClassesœ:[œTextœ,œstrœ,œobjectœ],œdataTypeœ:œPromptœ,œidœ:œPrompt-ODkUxœ}-OpenAIModel-9RykF{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-9RykFœ,œinputTypesœ:[œTextœ],œtypeœ:œstrœ}",
"source": "Prompt-ODkUx",
"sourceHandle": "{œbaseClassesœ: [œTextœ, œstrœ, œobjectœ], œdataTypeœ: œPromptœ, œidœ: œPrompt-ODkUxœ}",
"id": "reactflow__edge-Prompt-19lCm{œbaseClassesœ:[œTextœ,œstrœ,œobjectœ],œdataTypeœ:œPromptœ,œidœ:œPrompt-19lCmœ}-OpenAIModel-1v5Hz{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-1v5Hzœ,œinputTypesœ:[œTextœ,œRecordœ,œPromptœ],œtypeœ:œstrœ}",
"source": "Prompt-19lCm",
"sourceHandle": "{œbaseClassesœ: [œTextœ, œstrœ, œobjectœ], œdataTypeœ: œPromptœ, œidœ: œPrompt-19lCmœ}",
"style": {
"stroke": "#555"
},
"target": "OpenAIModel-9RykF",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-9RykFœ, œinputTypesœ: [œTextœ, œRecordœ, œPromptœ], œtypeœ: œstrœ}"
"target": "OpenAIModel-1v5Hz",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-1v5Hzœ, œinputTypesœ: [œTextœ, œRecordœ, œPromptœ], œtypeœ: œstrœ}"
},
{
"className": "stroke-gray-900 stroke-connection",
"className": "",
"data": {
"sourceHandle": {
"baseClasses": [
"str",
"object",
"Text"
],
"baseClasses": ["str", "object", "Text"],
"dataType": "OpenAIModel",
"id": "OpenAIModel-9RykF"
"id": "OpenAIModel-1v5Hz"
},
"targetHandle": {
"fieldName": "input_value",
"id": "ChatOutput-P1jEe",
"inputTypes": [
"Text"
],
"id": "ChatOutput-i56kN",
"inputTypes": ["Text"],
"type": "str"
}
},
"id": "reactflow__edge-OpenAIModel-9RykF{œbaseClassesœ:[œstrœ,œobjectœ,œTextœ],œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-9RykFœ}-ChatOutput-P1jEe{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-P1jEeœ,œinputTypesœ:[œTextœ],œtypeœ:œstrœ}",
"source": "OpenAIModel-9RykF",
"sourceHandle": "{œbaseClassesœ: [œstrœ, œobjectœ, œTextœ], œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-9RykFœ}",
"id": "reactflow__edge-OpenAIModel-1v5Hz{œbaseClassesœ:[œstrœ,œobjectœ,œTextœ],œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-1v5Hzœ}-ChatOutput-i56kN{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-i56kNœ,œinputTypesœ:[œTextœ],œtypeœ:œstrœ}",
"source": "OpenAIModel-1v5Hz",
"sourceHandle": "{œbaseClassesœ: [œstrœ, œobjectœ, œTextœ], œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-1v5Hzœ}",
"style": {
"stroke": "#555"
},
"target": "ChatOutput-P1jEe",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-P1jEeœ, œinputTypesœ: [œTextœ], œtypeœ: œstrœ}"
"target": "ChatOutput-i56kN",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-i56kNœ, œinputTypesœ: [œTextœ], œtypeœ: œstrœ}"
},
{
"className": "stroke-foreground stroke-connection",
"className": "",
"data": {
"sourceHandle": {
"baseClasses": [
"str",
"Text",
"object"
],
"baseClasses": ["str", "Text", "object"],
"dataType": "MemoryComponent",
"id": "MemoryComponent-cdA1J"
"id": "MemoryComponent-iDkC0"
},
"targetHandle": {
"fieldName": "input_value",
"id": "TextOutput-vrs6T",
"inputTypes": [
"Record",
"Text"
],
"id": "TextOutput-KuLNK",
"inputTypes": ["Record", "Text"],
"type": "str"
}
},
"id": "reactflow__edge-MemoryComponent-cdA1J{œbaseClassesœ:[œstrœ,œTextœ,œobjectœ],œdataTypeœ:œMemoryComponentœ,œidœ:œMemoryComponent-cdA1Jœ}-TextOutput-vrs6T{œfieldNameœ:œinput_valueœ,œidœ:œTextOutput-vrs6Tœ,œinputTypesœ:[œRecordœ,œTextœ],œtypeœ:œstrœ}",
"source": "MemoryComponent-cdA1J",
"sourceHandle": "{œbaseClassesœ: [œstrœ, œTextœ, œobjectœ], œdataTypeœ: œMemoryComponentœ, œidœ: œMemoryComponent-cdA1Jœ}",
"id": "reactflow__edge-MemoryComponent-iDkC0{œbaseClassesœ:[œstrœ,œTextœ,œobjectœ],œdataTypeœ:œMemoryComponentœ,œidœ:œMemoryComponent-iDkC0œ}-TextOutput-KuLNK{œfieldNameœ:œinput_valueœ,œidœ:œTextOutput-KuLNKœ,œinputTypesœ:[œRecordœ,œTextœ],œtypeœ:œstrœ}",
"source": "MemoryComponent-iDkC0",
"sourceHandle": "{œbaseClassesœ: [œstrœ, œTextœ, œobjectœ], œdataTypeœ: œMemoryComponentœ, œidœ: œMemoryComponent-iDkC0œ}",
"style": {
"stroke": "#555"
},
"target": "TextOutput-vrs6T",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œTextOutput-vrs6Tœ, œinputTypesœ: [œRecordœ, œTextœ], œtypeœ: œstrœ}"
"target": "TextOutput-KuLNK",
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œTextOutput-KuLNKœ, œinputTypesœ: [œRecordœ, œTextœ], œtypeœ: œstrœ}"
}
],
"nodes": [
{
"data": {
"id": "ChatInput-t7F8v",
"id": "ChatInput-Z6G1Z",
"node": {
"base_classes": [
"Text",
"object",
"Record",
"str"
],
"base_classes": ["Text", "object", "Record", "str"],
"beta": false,
"custom_fields": {
"input_value": null,
@ -190,10 +145,7 @@
"field_order": [],
"frozen": false,
"icon": "ChatInput",
"output_types": [
"Message",
"Text"
],
"output_types": ["Message", "Text"],
"template": {
"_type": "CustomComponent",
"code": {
@ -241,17 +193,12 @@
"fileTypes": [],
"file_path": "",
"info": "",
"input_types": [
"Text"
],
"input_types": ["Text"],
"list": true,
"load_from_db": false,
"multiline": false,
"name": "sender",
"options": [
"Machine",
"User"
],
"options": ["Machine", "User"],
"password": false,
"placeholder": "",
"required": false,
@ -267,9 +214,7 @@
"fileTypes": [],
"file_path": "",
"info": "",
"input_types": [
"Text"
],
"input_types": ["Text"],
"list": false,
"load_from_db": false,
"multiline": false,
@ -289,9 +234,7 @@
"fileTypes": [],
"file_path": "",
"info": "If provided, the message will be stored in the memory.",
"input_types": [
"Text"
],
"input_types": ["Text"],
"list": false,
"load_from_db": false,
"multiline": false,
@ -310,7 +253,7 @@
},
"dragging": false,
"height": 469,
"id": "ChatInput-t7F8v",
"id": "ChatInput-Z6G1Z",
"position": {
"x": 1283.2700598313072,
"y": 982.5953650473145
@ -325,14 +268,9 @@
},
{
"data": {
"id": "ChatOutput-P1jEe",
"id": "ChatOutput-i56kN",
"node": {
"base_classes": [
"Text",
"object",
"Record",
"str"
],
"base_classes": ["Text", "object", "Record", "str"],
"beta": false,
"custom_fields": {
"input_value": null,
@ -348,10 +286,7 @@
"field_order": [],
"frozen": false,
"icon": "ChatOutput",
"output_types": [
"Message",
"Text"
],
"output_types": ["Message", "Text"],
"template": {
"_type": "CustomComponent",
"code": {
@ -379,9 +314,7 @@
"fileTypes": [],
"file_path": "",
"info": "",
"input_types": [
"Text"
],
"input_types": ["Text"],
"list": false,
"load_from_db": false,
"multiline": true,
@ -400,17 +333,12 @@
"fileTypes": [],
"file_path": "",
"info": "",
"input_types": [
"Text"
],
"input_types": ["Text"],
"list": true,
"load_from_db": false,
"multiline": false,
"name": "sender",
"options": [
"Machine",
"User"
],
"options": ["Machine", "User"],
"password": false,
"placeholder": "",
"required": false,
@ -426,9 +354,7 @@
"fileTypes": [],
"file_path": "",
"info": "",
"input_types": [
"Text"
],
"input_types": ["Text"],
"list": false,
"load_from_db": false,
"multiline": false,
@ -448,9 +374,7 @@
"fileTypes": [],
"file_path": "",
"info": "If provided, the message will be stored in the memory.",
"input_types": [
"Text"
],
"input_types": ["Text"],
"list": false,
"load_from_db": false,
"multiline": false,
@ -469,7 +393,7 @@
},
"dragging": false,
"height": 477,
"id": "ChatOutput-P1jEe",
"id": "ChatOutput-i56kN",
"position": {
"x": 3154.916355514023,
"y": 851.051882666333
@ -486,13 +410,9 @@
"data": {
"description": "Retrieves stored chat messages given a specific Session ID.",
"display_name": "Chat Memory",
"id": "MemoryComponent-cdA1J",
"id": "MemoryComponent-iDkC0",
"node": {
"base_classes": [
"str",
"Text",
"object"
],
"base_classes": ["str", "Text", "object"],
"beta": true,
"custom_fields": {
"n_messages": null,
@ -509,9 +429,7 @@
"field_order": [],
"frozen": false,
"icon": "history",
"output_types": [
"Text"
],
"output_types": ["Text"],
"template": {
"_type": "CustomComponent",
"code": {
@ -558,17 +476,12 @@
"fileTypes": [],
"file_path": "",
"info": "Order of the messages.",
"input_types": [
"Text"
],
"input_types": ["Text"],
"list": true,
"load_from_db": false,
"multiline": false,
"name": "order",
"options": [
"Ascending",
"Descending"
],
"options": ["Ascending", "Descending"],
"password": false,
"placeholder": "",
"required": false,
@ -584,9 +497,7 @@
"fileTypes": [],
"file_path": "",
"info": "Template to convert Record to Text. If left empty, it will be dynamically set to the Record's text key.",
"input_types": [
"Text"
],
"input_types": ["Text"],
"list": false,
"load_from_db": false,
"multiline": true,
@ -606,18 +517,12 @@
"fileTypes": [],
"file_path": "",
"info": "",
"input_types": [
"Text"
],
"input_types": ["Text"],
"list": true,
"load_from_db": false,
"multiline": false,
"name": "sender",
"options": [
"Machine",
"User",
"Machine and User"
],
"options": ["Machine", "User", "Machine and User"],
"password": false,
"placeholder": "",
"required": false,
@ -633,9 +538,7 @@
"fileTypes": [],
"file_path": "",
"info": "",
"input_types": [
"Text"
],
"input_types": ["Text"],
"list": false,
"load_from_db": false,
"multiline": false,
@ -654,9 +557,7 @@
"fileTypes": [],
"file_path": "",
"info": "Session ID of the chat history.",
"input_types": [
"Text"
],
"input_types": ["Text"],
"list": false,
"load_from_db": false,
"multiline": false,
@ -675,7 +576,7 @@
},
"dragging": false,
"height": 489,
"id": "MemoryComponent-cdA1J",
"id": "MemoryComponent-iDkC0",
"position": {
"x": 1289.9606870058817,
"y": 442.16804561053766
@ -692,19 +593,12 @@
"data": {
"description": "A component for creating prompt templates using dynamic variables.",
"display_name": "Prompt",
"id": "Prompt-ODkUx",
"id": "Prompt-19lCm",
"node": {
"base_classes": [
"Text",
"str",
"object"
],
"base_classes": ["Text", "str", "object"],
"beta": false,
"custom_fields": {
"template": [
"context",
"user_message"
]
"template": ["context", "user_message"]
},
"description": "Create a prompt template with dynamic variables.",
"display_name": "Prompt",
@ -719,9 +613,7 @@
"is_input": null,
"is_output": null,
"name": "",
"output_types": [
"Prompt"
],
"output_types": ["Prompt"],
"template": {
"_type": "CustomComponent",
"code": {
@ -775,9 +667,7 @@
"fileTypes": [],
"file_path": "",
"info": "",
"input_types": [
"Text"
],
"input_types": ["Text"],
"list": false,
"load_from_db": false,
"multiline": false,
@ -822,7 +712,7 @@
},
"dragging": false,
"height": 477,
"id": "Prompt-ODkUx",
"id": "Prompt-19lCm",
"position": {
"x": 1894.594426342426,
"y": 753.3797365481901
@ -837,13 +727,9 @@
},
{
"data": {
"id": "OpenAIModel-9RykF",
"id": "OpenAIModel-1v5Hz",
"node": {
"base_classes": [
"str",
"object",
"Text"
],
"base_classes": ["str", "object", "Text"],
"beta": false,
"custom_fields": {
"input_value": null,
@ -873,9 +759,7 @@
],
"frozen": false,
"icon": "OpenAI",
"output_types": [
"Text"
],
"output_types": ["Text"],
"template": {
"_type": "CustomComponent",
"code": {
@ -903,11 +787,7 @@
"fileTypes": [],
"file_path": "",
"info": "",
"input_types": [
"Text",
"Record",
"Prompt"
],
"input_types": ["Text", "Record", "Prompt"],
"list": false,
"load_from_db": false,
"multiline": false,
@ -964,9 +844,7 @@
"fileTypes": [],
"file_path": "",
"info": "",
"input_types": [
"Text"
],
"input_types": ["Text"],
"list": true,
"load_from_db": false,
"multiline": false,
@ -993,9 +871,7 @@
"fileTypes": [],
"file_path": "",
"info": "The base URL of the OpenAI API. Defaults to https://api.openai.com/v1.\n\nYou can change this to use other APIs like JinaChat, LocalAI and Prem.",
"input_types": [
"Text"
],
"input_types": ["Text"],
"list": false,
"load_from_db": false,
"multiline": false,
@ -1014,9 +890,7 @@
"fileTypes": [],
"file_path": "",
"info": "The OpenAI API Key to use for the OpenAI model.",
"input_types": [
"Text"
],
"input_types": ["Text"],
"list": false,
"load_from_db": true,
"multiline": false,
@ -1027,7 +901,7 @@
"show": true,
"title_case": false,
"type": "str",
"value": "OPENAI_API_KEY"
"value": ""
},
"stream": {
"advanced": true,
@ -1055,9 +929,7 @@
"fileTypes": [],
"file_path": "",
"info": "System message to pass to the model.",
"input_types": [
"Text"
],
"input_types": ["Text"],
"list": false,
"load_from_db": false,
"multiline": false,
@ -1100,7 +972,7 @@
},
"dragging": false,
"height": 563,
"id": "OpenAIModel-9RykF",
"id": "OpenAIModel-1v5Hz",
"position": {
"x": 2561.5850334731617,
"y": 553.2745131130916
@ -1115,13 +987,12 @@
},
{
"data": {
"id": "TextOutput-vrs6T",
"description": "Display a text output in the Playground.",
"display_name": "Inspect Memory",
"edited": false,
"id": "TextOutput-KuLNK",
"node": {
"base_classes": [
"str",
"object",
"Text"
],
"base_classes": ["object", "str", "Text"],
"beta": false,
"custom_fields": {
"input_value": null,
@ -1130,13 +1001,12 @@
"description": "Display a text output in the Playground.",
"display_name": "Inspect Memory",
"documentation": "",
"edited": true,
"field_formatters": {},
"field_order": [],
"frozen": false,
"icon": "type",
"output_types": [
"Text"
],
"output_types": ["Text"],
"template": {
"_type": "CustomComponent",
"code": {
@ -1155,19 +1025,16 @@
"show": true,
"title_case": false,
"type": "code",
"value": "from typing import Optional\n\nfrom langflow.base.io.text import TextComponent\nfrom langflow.field_typing import Text\n\n\nclass TextOutput(TextComponent):\n display_name = \"Text Output\"\n description = \"Display a text output in the Playground.\"\n icon = \"type\"\n\n def build_config(self):\n return {\n \"input_value\": {\n \"display_name\": \"Value\",\n \"input_types\": [\"Record\", \"Text\"],\n \"info\": \"Text or Record to be passed as output.\",\n },\n \"record_template\": {\n \"display_name\": \"Record Template\",\n \"multiline\": True,\n \"info\": \"Template to convert Record to Text. If left empty, it will be dynamically set to the Record's text key.\",\n \"advanced\": True,\n },\n }\n\n def build(self, input_value: Optional[Text] = \"\", record_template: str = \"\") -> Text:\n return super().build(input_value=input_value, record_template=record_template)\n"
"value": "from typing import Optional\n\nfrom langflow.base.io.text import TextComponent\nfrom langflow.field_typing import Text\n\n\nclass TextOutput(TextComponent):\n display_name = \"Text Output\"\n description = \"Display a text output in the Playground.\"\n icon = \"type\"\n\n def build_config(self):\n return {\n \"input_value\": {\n \"display_name\": \"Text\",\n \"input_types\": [\"Record\", \"Text\"],\n \"info\": \"Text or Record to be passed as output.\",\n },\n \"record_template\": {\n \"display_name\": \"Record Template\",\n \"multiline\": True,\n \"info\": \"Template to convert Record to Text. If left empty, it will be dynamically set to the Record's text key.\",\n \"advanced\": True,\n },\n }\n\n def build(self, input_value: Optional[Text] = \"\", record_template: Optional[str] = \"\") -> Text:\n return super().build(input_value=input_value, record_template=record_template)\n"
},
"input_value": {
"advanced": false,
"display_name": "Value",
"display_name": "Text",
"dynamic": false,
"fileTypes": [],
"file_path": "",
"info": "Text or Record to be passed as output.",
"input_types": [
"Record",
"Text"
],
"input_types": ["Record", "Text"],
"list": false,
"load_from_db": false,
"multiline": false,
@ -1187,9 +1054,7 @@
"fileTypes": [],
"file_path": "",
"info": "Template to convert Record to Text. If left empty, it will be dynamically set to the Record's text key.",
"input_types": [
"Text"
],
"input_types": ["Text"],
"list": false,
"load_from_db": false,
"multiline": true,
@ -1208,7 +1073,7 @@
},
"dragging": false,
"height": 289,
"id": "TextOutput-vrs6T",
"id": "TextOutput-KuLNK",
"position": {
"x": 1911.4785906252087,
"y": 247.39079954376987
@ -1231,8 +1096,8 @@
"description": "This project can be used as a starting point for building a Chat experience with user specific memory. You can set a different Session ID to start a new message history.",
"icon": "🤖",
"icon_bg_color": "#FFD700",
"id": "08d5cccf-d098-4367-b14b-1078429c9ed9",
"id": "edee50d3-a7e7-4cc7-9448-cc662300e8fb",
"is_component": false,
"last_tested_version": "1.0.0a0",
"last_tested_version": "1.0.0a52",
"name": "Memory Chatbot"
}
}

File diff suppressed because one or more lines are too long