fix: Notes nodes width resets to default on page reload (#6025)
* fix note node size * ♻️ (NoteNode/index.tsx): remove commented out code for debounced resize handler to improve code readability and maintainability * feat: update NoteNode to resize and persist dimensions in state * 🐛 (generalBugs-shard-10.spec.ts): fix clicking on the last element with the text "openai" instead of the first one to match the intended behavior ✨ (generalBugs-shard-10.spec.ts): refactor test to use forEach loop for better readability and accuracy in comparing text contents * 🐛 (general-bugs-save-changes-on-node.spec.ts): add 500ms delay to fix flakiness in tests related to clicking elements and waiting for selectors to appear * ✨ (appHeaderComponent/index.tsx): add data-testid attribute to app header for testing purposes 📝 (general-bugs-save-changes-on-node.spec.ts): update verifyTextareaValue function to accept an additional parameter flowName for better test coverage and clarity 📝 (general-bugs-save-changes-on-node.spec.ts): add functionality to input and fill a random flow name in the test scenario for improved test coverage and reliability --------- Co-authored-by: anovazzi1 <otavio2204@gmail.com> Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
parent
974cf2ee20
commit
8a7d7ef62f
20 changed files with 2357 additions and 4133 deletions
|
|
@ -2,179 +2,165 @@
|
|||
"data": {
|
||||
"edges": [
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-PG8Vd",
|
||||
"id": "Prompt-f1f2v",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "system_message",
|
||||
"id": "OpenAIModel-3VRcc",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "OpenAIModel-lL9HA",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__Prompt-PG8Vd{œdataTypeœ:œPromptœ,œidœ:œPrompt-PG8Vdœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-3VRcc{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-3VRccœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-PG8Vd",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-PG8Vdœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-3VRcc",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-3VRccœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Prompt-f1f2v{œdataTypeœ:œPromptœ,œidœ:œPrompt-f1f2vœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-lL9HA{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-lL9HAœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "Prompt-f1f2v",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-f1f2vœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-lL9HA",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-lL9HAœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "ChatInput",
|
||||
"id": "ChatInput-nB59E",
|
||||
"id": "ChatInput-GyBUF",
|
||||
"name": "message",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "OpenAIModel-3VRcc",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "OpenAIModel-lL9HA",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__ChatInput-nB59E{œdataTypeœ:œChatInputœ,œidœ:œChatInput-nB59Eœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-3VRcc{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-3VRccœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "ChatInput-nB59E",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-nB59Eœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-3VRcc",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-3VRccœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-ChatInput-GyBUF{œdataTypeœ:œChatInputœ,œidœ:œChatInput-GyBUFœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-lL9HA{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-lL9HAœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "ChatInput-GyBUF",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-GyBUFœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-lL9HA",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-lL9HAœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "OpenAIModel",
|
||||
"id": "OpenAIModel-3VRcc",
|
||||
"id": "OpenAIModel-lL9HA",
|
||||
"name": "text_output",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "OpenAIModel-01mE2",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "OpenAIModel-JieGw",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__OpenAIModel-3VRcc{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-3VRccœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-01mE2{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-01mE2œ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "OpenAIModel-3VRcc",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-3VRccœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-01mE2",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-01mE2œ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-OpenAIModel-lL9HA{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-lL9HAœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-JieGw{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-JieGwœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "OpenAIModel-lL9HA",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-lL9HAœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-JieGw",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-JieGwœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-aDWJD",
|
||||
"id": "Prompt-4IOgm",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "system_message",
|
||||
"id": "OpenAIModel-01mE2",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "OpenAIModel-JieGw",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__Prompt-aDWJD{œdataTypeœ:œPromptœ,œidœ:œPrompt-aDWJDœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-01mE2{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-01mE2œ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-aDWJD",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-aDWJDœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-01mE2",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-01mE2œ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Prompt-4IOgm{œdataTypeœ:œPromptœ,œidœ:œPrompt-4IOgmœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-JieGw{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-JieGwœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "Prompt-4IOgm",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-4IOgmœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-JieGw",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-JieGwœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "OpenAIModel",
|
||||
"id": "OpenAIModel-01mE2",
|
||||
"id": "OpenAIModel-JieGw",
|
||||
"name": "text_output",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "OpenAIModel-4DgWt",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "OpenAIModel-dXMRv",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__OpenAIModel-01mE2{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-01mE2œ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-4DgWt{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-4DgWtœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "OpenAIModel-01mE2",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-01mE2œ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-4DgWt",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-4DgWtœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-OpenAIModel-JieGw{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-JieGwœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-dXMRv{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-dXMRvœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "OpenAIModel-JieGw",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-JieGwœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-dXMRv",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-dXMRvœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-fv4MA",
|
||||
"id": "Prompt-FRjO8",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "system_message",
|
||||
"id": "OpenAIModel-4DgWt",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "OpenAIModel-dXMRv",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__Prompt-fv4MA{œdataTypeœ:œPromptœ,œidœ:œPrompt-fv4MAœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-4DgWt{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-4DgWtœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-fv4MA",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-fv4MAœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-4DgWt",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-4DgWtœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Prompt-FRjO8{œdataTypeœ:œPromptœ,œidœ:œPrompt-FRjO8œ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-dXMRv{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-dXMRvœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "Prompt-FRjO8",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-FRjO8œ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-dXMRv",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-dXMRvœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "OpenAIModel",
|
||||
"id": "OpenAIModel-4DgWt",
|
||||
"id": "OpenAIModel-dXMRv",
|
||||
"name": "text_output",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "ChatOutput-PE0wW",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "ChatOutput-KXQMh",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__OpenAIModel-4DgWt{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-4DgWtœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-PE0wW{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-PE0wWœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "OpenAIModel-4DgWt",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-4DgWtœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-PE0wW",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-PE0wWœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-OpenAIModel-dXMRv{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-dXMRvœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-KXQMh{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-KXQMhœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "OpenAIModel-dXMRv",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-dXMRvœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-KXQMh",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-KXQMhœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
|
|
@ -182,11 +168,9 @@
|
|||
"data": {
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"id": "Prompt-aDWJD",
|
||||
"id": "Prompt-4IOgm",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {
|
||||
|
|
@ -196,9 +180,7 @@
|
|||
"display_name": "Prompt",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"template"
|
||||
],
|
||||
"field_order": ["template"],
|
||||
"frozen": false,
|
||||
"icon": "prompts",
|
||||
"legacy": false,
|
||||
|
|
@ -265,9 +247,7 @@
|
|||
"display_name": "Tool Placeholder",
|
||||
"dynamic": false,
|
||||
"info": "A placeholder input for tool mode.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "tool_placeholder",
|
||||
|
|
@ -288,10 +268,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 260,
|
||||
"id": "Prompt-aDWJD",
|
||||
"id": "Prompt-4IOgm",
|
||||
"measured": {
|
||||
"height": 260,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1921.9168573384,
|
||||
|
|
@ -307,11 +287,9 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "ChatInput-nB59E",
|
||||
"id": "ChatInput-GyBUF",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"category": "inputs",
|
||||
"conditional_paths": [],
|
||||
|
|
@ -362,9 +340,7 @@
|
|||
"display_name": "Background Color",
|
||||
"dynamic": false,
|
||||
"info": "The background color of the icon.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "background_color",
|
||||
|
|
@ -383,9 +359,7 @@
|
|||
"display_name": "Icon",
|
||||
"dynamic": false,
|
||||
"info": "The icon of the message.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "chat_icon",
|
||||
|
|
@ -486,10 +460,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Type of sender.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User"
|
||||
],
|
||||
"options": ["Machine", "User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -504,9 +475,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Name of the sender.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -525,9 +494,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -562,9 +529,7 @@
|
|||
"display_name": "Text Color",
|
||||
"dynamic": false,
|
||||
"info": "The text color of the name",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "text_color",
|
||||
|
|
@ -583,10 +548,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 234,
|
||||
"id": "ChatInput-nB59E",
|
||||
"id": "ChatInput-GyBUF",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1178.0239685549568,
|
||||
|
|
@ -604,11 +569,9 @@
|
|||
"data": {
|
||||
"description": "Display a chat message in the Playground.",
|
||||
"display_name": "Chat Output",
|
||||
"id": "ChatOutput-PE0wW",
|
||||
"id": "ChatOutput-KXQMh",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -657,9 +620,7 @@
|
|||
"display_name": "Background Color",
|
||||
"dynamic": false,
|
||||
"info": "The background color of the icon.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "background_color",
|
||||
|
|
@ -679,9 +640,7 @@
|
|||
"display_name": "Icon",
|
||||
"dynamic": false,
|
||||
"info": "The icon of the message.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "chat_icon",
|
||||
|
|
@ -719,9 +678,7 @@
|
|||
"display_name": "Data Template",
|
||||
"dynamic": false,
|
||||
"info": "Template to convert Data to Text. If left empty, it will be dynamically set to the Data's text key.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "data_template",
|
||||
|
|
@ -741,9 +698,7 @@
|
|||
"display_name": "Text",
|
||||
"dynamic": false,
|
||||
"info": "Message to be passed as output.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "input_value",
|
||||
|
|
@ -764,10 +719,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Type of sender.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User"
|
||||
],
|
||||
"options": ["Machine", "User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -783,9 +735,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Name of the sender.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -805,9 +755,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -843,9 +791,7 @@
|
|||
"display_name": "Text Color",
|
||||
"dynamic": false,
|
||||
"info": "The text color of the name",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "text_color",
|
||||
|
|
@ -866,10 +812,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 234,
|
||||
"id": "ChatOutput-PE0wW",
|
||||
"id": "ChatOutput-KXQMh",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 3389.8335347035913,
|
||||
|
|
@ -887,11 +833,9 @@
|
|||
"data": {
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"id": "Prompt-fv4MA",
|
||||
"id": "Prompt-FRjO8",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {
|
||||
|
|
@ -901,9 +845,7 @@
|
|||
"display_name": "Prompt",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"template"
|
||||
],
|
||||
"field_order": ["template"],
|
||||
"frozen": false,
|
||||
"icon": "prompts",
|
||||
"legacy": false,
|
||||
|
|
@ -970,9 +912,7 @@
|
|||
"display_name": "Tool Placeholder",
|
||||
"dynamic": false,
|
||||
"info": "A placeholder input for tool mode.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "tool_placeholder",
|
||||
|
|
@ -993,10 +933,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 260,
|
||||
"id": "Prompt-fv4MA",
|
||||
"id": "Prompt-FRjO8",
|
||||
"measured": {
|
||||
"height": 260,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 2647.8305106628454,
|
||||
|
|
@ -1014,11 +954,9 @@
|
|||
"data": {
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"id": "Prompt-PG8Vd",
|
||||
"id": "Prompt-f1f2v",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {
|
||||
|
|
@ -1028,9 +966,7 @@
|
|||
"display_name": "Prompt",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"template"
|
||||
],
|
||||
"field_order": ["template"],
|
||||
"frozen": false,
|
||||
"icon": "prompts",
|
||||
"legacy": false,
|
||||
|
|
@ -1097,9 +1033,7 @@
|
|||
"display_name": "Tool Placeholder",
|
||||
"dynamic": false,
|
||||
"info": "A placeholder input for tool mode.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "tool_placeholder",
|
||||
|
|
@ -1120,10 +1054,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 260,
|
||||
"id": "Prompt-PG8Vd",
|
||||
"id": "Prompt-f1f2v",
|
||||
"measured": {
|
||||
"height": 260,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1178.7099500302636,
|
||||
|
|
@ -1139,7 +1073,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-rGShm",
|
||||
"id": "note-UUVIc",
|
||||
"node": {
|
||||
"description": "### Input Examples\n1.\n \"The growing demand for personalized, AI-driven mental health support tools that can provide real-time interventions and track long-term emotional well-being.\"\n\n\n2. \n \"The increasing need for secure and user-friendly decentralized finance (DeFi) platforms that make cryptocurrency investments accessible to non-tech-savvy users.\"\n \n\n3. \n \"The rising popularity of immersive, augmented reality (AR) experiences for remote collaboration and virtual team-building in distributed workforces.\"\n\n\n4. \n \"The expanding market for smart, IoT-enabled urban farming solutions that allow city dwellers to grow their own food efficiently in small spaces.\"\n\n\n5. \n \"The emerging demand for AI-powered personal styling and shopping assistants that consider sustainability, body positivity, and individual style preferences.\"\n\n",
|
||||
"display_name": "",
|
||||
|
|
@ -1151,11 +1085,11 @@
|
|||
"type": "note"
|
||||
},
|
||||
"dragging": false,
|
||||
"height": 430,
|
||||
"id": "note-rGShm",
|
||||
"height": 324,
|
||||
"id": "note-UUVIc",
|
||||
"measured": {
|
||||
"height": 430,
|
||||
"width": 328
|
||||
"height": 324,
|
||||
"width": 324
|
||||
},
|
||||
"position": {
|
||||
"x": 528.0392006831054,
|
||||
|
|
@ -1168,15 +1102,15 @@
|
|||
"resizing": false,
|
||||
"selected": false,
|
||||
"style": {
|
||||
"height": 430,
|
||||
"width": 600
|
||||
"height": 324,
|
||||
"width": 324
|
||||
},
|
||||
"type": "noteNode",
|
||||
"width": 600
|
||||
"width": 324
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-ECxh2",
|
||||
"id": "note-DqpAx",
|
||||
"node": {
|
||||
"description": "### Prompt Chaining\n\nThis flow demonstrates fundamental prompt chaining principles:\n\n1. **Chain Structure**\n • User input → First Prompt → LLM\n • First output → Second Prompt → LLM\n • Second output → Final Prompt → LLM\n • Final output\n\n2. **Key Technique Elements**\n • Each prompt is specifically designed to process previous output\n • Output formatting ensures clean handoff between stages\n • Context flows naturally through the chain\n • Each LLM call builds upon previous results\n\n3. **Technical Implementation**\n • Multiple prompt templates working in sequence\n • Strategic input/output connections\n • Consistent message handling between stages\n • Progressive refinement through the chain\n\nThis pattern can be adapted for any use case by modifying the prompt templates while keeping the same chaining structure.",
|
||||
"display_name": "",
|
||||
|
|
@ -1188,11 +1122,11 @@
|
|||
"type": "note"
|
||||
},
|
||||
"dragging": false,
|
||||
"height": 451,
|
||||
"id": "note-ECxh2",
|
||||
"height": 324,
|
||||
"id": "note-DqpAx",
|
||||
"measured": {
|
||||
"height": 451,
|
||||
"width": 328
|
||||
"height": 324,
|
||||
"width": 324
|
||||
},
|
||||
"position": {
|
||||
"x": 892.4280059782889,
|
||||
|
|
@ -1205,20 +1139,17 @@
|
|||
"resizing": false,
|
||||
"selected": false,
|
||||
"style": {
|
||||
"height": 451,
|
||||
"width": 600
|
||||
"height": 324,
|
||||
"width": 324
|
||||
},
|
||||
"type": "noteNode",
|
||||
"width": 600
|
||||
"width": 324
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "OpenAIModel-3VRcc",
|
||||
"id": "OpenAIModel-lL9HA",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"LanguageModel",
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["LanguageModel", "Message"],
|
||||
"beta": false,
|
||||
"category": "models",
|
||||
"conditional_paths": [],
|
||||
|
|
@ -1268,9 +1199,7 @@
|
|||
"display_name": "Language Model",
|
||||
"method": "build_model",
|
||||
"name": "model_output",
|
||||
"required_inputs": [
|
||||
"api_key"
|
||||
],
|
||||
"required_inputs": ["api_key"],
|
||||
"selected": "LanguageModel",
|
||||
"tool_mode": true,
|
||||
"types": [
|
||||
|
|
@ -1289,9 +1218,7 @@
|
|||
"display_name": "OpenAI API Key",
|
||||
"dynamic": false,
|
||||
"info": "The OpenAI API Key to use for the OpenAI model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"load_from_db": true,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
|
|
@ -1300,7 +1227,7 @@
|
|||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "str",
|
||||
"value": "OPENAI_API_KEY"
|
||||
"value": ""
|
||||
},
|
||||
"code": {
|
||||
"advanced": true,
|
||||
|
|
@ -1326,9 +1253,7 @@
|
|||
"display_name": "Input",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -1492,9 +1417,7 @@
|
|||
"display_name": "System Message",
|
||||
"dynamic": false,
|
||||
"info": "System message to pass to the model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -1545,10 +1468,10 @@
|
|||
"type": "OpenAIModel"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "OpenAIModel-3VRcc",
|
||||
"id": "OpenAIModel-lL9HA",
|
||||
"measured": {
|
||||
"height": 734,
|
||||
"width": 360
|
||||
"height": 653,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1563.1591714154865,
|
||||
|
|
@ -1559,12 +1482,9 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "OpenAIModel-01mE2",
|
||||
"id": "OpenAIModel-JieGw",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"LanguageModel",
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["LanguageModel", "Message"],
|
||||
"beta": false,
|
||||
"category": "models",
|
||||
"conditional_paths": [],
|
||||
|
|
@ -1614,9 +1534,7 @@
|
|||
"display_name": "Language Model",
|
||||
"method": "build_model",
|
||||
"name": "model_output",
|
||||
"required_inputs": [
|
||||
"api_key"
|
||||
],
|
||||
"required_inputs": ["api_key"],
|
||||
"selected": "LanguageModel",
|
||||
"tool_mode": true,
|
||||
"types": [
|
||||
|
|
@ -1635,9 +1553,7 @@
|
|||
"display_name": "OpenAI API Key",
|
||||
"dynamic": false,
|
||||
"info": "The OpenAI API Key to use for the OpenAI model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"load_from_db": true,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
|
|
@ -1646,7 +1562,7 @@
|
|||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "str",
|
||||
"value": "OPENAI_API_KEY"
|
||||
"value": ""
|
||||
},
|
||||
"code": {
|
||||
"advanced": true,
|
||||
|
|
@ -1672,9 +1588,7 @@
|
|||
"display_name": "Input",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -1838,9 +1752,7 @@
|
|||
"display_name": "System Message",
|
||||
"dynamic": false,
|
||||
"info": "System message to pass to the model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -1891,10 +1803,10 @@
|
|||
"type": "OpenAIModel"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "OpenAIModel-01mE2",
|
||||
"id": "OpenAIModel-JieGw",
|
||||
"measured": {
|
||||
"height": 734,
|
||||
"width": 360
|
||||
"height": 653,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 2289.2925714867265,
|
||||
|
|
@ -1905,12 +1817,9 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "OpenAIModel-4DgWt",
|
||||
"id": "OpenAIModel-dXMRv",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"LanguageModel",
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["LanguageModel", "Message"],
|
||||
"beta": false,
|
||||
"category": "models",
|
||||
"conditional_paths": [],
|
||||
|
|
@ -1960,9 +1869,7 @@
|
|||
"display_name": "Language Model",
|
||||
"method": "build_model",
|
||||
"name": "model_output",
|
||||
"required_inputs": [
|
||||
"api_key"
|
||||
],
|
||||
"required_inputs": ["api_key"],
|
||||
"selected": "LanguageModel",
|
||||
"tool_mode": true,
|
||||
"types": [
|
||||
|
|
@ -1981,9 +1888,7 @@
|
|||
"display_name": "OpenAI API Key",
|
||||
"dynamic": false,
|
||||
"info": "The OpenAI API Key to use for the OpenAI model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"load_from_db": true,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
|
|
@ -1992,7 +1897,7 @@
|
|||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "str",
|
||||
"value": "OPENAI_API_KEY"
|
||||
"value": ""
|
||||
},
|
||||
"code": {
|
||||
"advanced": true,
|
||||
|
|
@ -2018,9 +1923,7 @@
|
|||
"display_name": "Input",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -2184,9 +2087,7 @@
|
|||
"display_name": "System Message",
|
||||
"dynamic": false,
|
||||
"info": "System message to pass to the model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -2237,10 +2138,10 @@
|
|||
"type": "OpenAIModel"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "OpenAIModel-4DgWt",
|
||||
"id": "OpenAIModel-dXMRv",
|
||||
"measured": {
|
||||
"height": 734,
|
||||
"width": 360
|
||||
"height": 653,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 3018.8917918926063,
|
||||
|
|
@ -2264,7 +2165,5 @@
|
|||
"is_component": false,
|
||||
"last_tested_version": "1.0.19.post2",
|
||||
"name": "Prompt Chaining",
|
||||
"tags": [
|
||||
"chatbots"
|
||||
]
|
||||
}
|
||||
"tags": ["chatbots"]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,78 +6,66 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "ChatInput",
|
||||
"id": "ChatInput-sU0vL",
|
||||
"id": "ChatInput-gyoWG",
|
||||
"name": "message",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "OpenAIModel-6Uq9A",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "OpenAIModel-kVbrq",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-ChatInput-sU0vL{œdataTypeœ:œChatInputœ,œidœ:œChatInput-sU0vLœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-6Uq9A{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-6Uq9Aœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "ChatInput-sU0vL",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-sU0vLœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-6Uq9A",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-6Uq9Aœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-ChatInput-gyoWG{œdataTypeœ:œChatInputœ,œidœ:œChatInput-gyoWGœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-kVbrq{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-kVbrqœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "ChatInput-gyoWG",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-gyoWGœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-kVbrq",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-kVbrqœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-a0CWD",
|
||||
"id": "Prompt-U0xoC",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "system_message",
|
||||
"id": "OpenAIModel-6Uq9A",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "OpenAIModel-kVbrq",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Prompt-a0CWD{œdataTypeœ:œPromptœ,œidœ:œPrompt-a0CWDœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-6Uq9A{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-6Uq9Aœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-a0CWD",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-a0CWDœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-6Uq9A",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-6Uq9Aœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Prompt-U0xoC{œdataTypeœ:œPromptœ,œidœ:œPrompt-U0xoCœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-kVbrq{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-kVbrqœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-U0xoC",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-U0xoCœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-kVbrq",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-kVbrqœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "OpenAIModel",
|
||||
"id": "OpenAIModel-6Uq9A",
|
||||
"id": "OpenAIModel-kVbrq",
|
||||
"name": "text_output",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "ChatOutput-S56f5",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "ChatOutput-qv4Kg",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-OpenAIModel-6Uq9A{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-6Uq9Aœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-S56f5{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-S56f5œ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "OpenAIModel-6Uq9A",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-6Uq9Aœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-S56f5",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-S56f5œ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-OpenAIModel-kVbrq{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-kVbrqœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-qv4Kg{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-qv4Kgœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "OpenAIModel-kVbrq",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-kVbrqœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-qv4Kg",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-qv4Kgœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
|
|
@ -85,11 +73,9 @@
|
|||
"data": {
|
||||
"description": "Get chat inputs from the Playground.",
|
||||
"display_name": "Chat Input",
|
||||
"id": "ChatInput-sU0vL",
|
||||
"id": "ChatInput-gyoWG",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -135,9 +121,7 @@
|
|||
"display_name": "Background Color",
|
||||
"dynamic": false,
|
||||
"info": "The background color of the icon.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "background_color",
|
||||
|
|
@ -156,9 +140,7 @@
|
|||
"display_name": "Icon",
|
||||
"dynamic": false,
|
||||
"info": "The icon of the message.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "chat_icon",
|
||||
|
|
@ -255,10 +237,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Type of sender.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User"
|
||||
],
|
||||
"options": ["Machine", "User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -272,9 +251,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Name of the sender.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -292,9 +269,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -329,9 +304,7 @@
|
|||
"display_name": "Text Color",
|
||||
"dynamic": false,
|
||||
"info": "The text color of the name",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "text_color",
|
||||
|
|
@ -350,10 +323,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 234,
|
||||
"id": "ChatInput-sU0vL",
|
||||
"id": "ChatInput-gyoWG",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 689.5720422421635,
|
||||
|
|
@ -371,11 +344,9 @@
|
|||
"data": {
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"id": "Prompt-a0CWD",
|
||||
"id": "Prompt-U0xoC",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {
|
||||
|
|
@ -385,9 +356,7 @@
|
|||
"display_name": "Prompt",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"template"
|
||||
],
|
||||
"field_order": ["template"],
|
||||
"frozen": false,
|
||||
"icon": "prompts",
|
||||
"legacy": false,
|
||||
|
|
@ -453,9 +422,7 @@
|
|||
"display_name": "Tool Placeholder",
|
||||
"dynamic": false,
|
||||
"info": "A placeholder input for tool mode.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "tool_placeholder",
|
||||
|
|
@ -476,10 +443,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 260,
|
||||
"id": "Prompt-a0CWD",
|
||||
"id": "Prompt-U0xoC",
|
||||
"measured": {
|
||||
"height": 260,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 690.2015147036818,
|
||||
|
|
@ -495,7 +462,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "undefined-omGwP",
|
||||
"id": "undefined-9fug3",
|
||||
"node": {
|
||||
"description": "## 📖 README\n\nPerform basic prompting with an OpenAI model.\n\n#### Quick Start\n- Add your **OpenAI API key** to the **OpenAI Model**\n- Open the **Playground** to chat with your bot.\n\n#### Next steps:\n Experiment by changing the prompt and the OpenAI model temperature to see how the bot's responses change.",
|
||||
"display_name": "Read Me",
|
||||
|
|
@ -506,32 +473,32 @@
|
|||
}
|
||||
},
|
||||
"dragging": false,
|
||||
"height": 250,
|
||||
"id": "undefined-omGwP",
|
||||
"height": 332,
|
||||
"id": "undefined-9fug3",
|
||||
"measured": {
|
||||
"height": 250,
|
||||
"width": 328
|
||||
"height": 332,
|
||||
"width": 324
|
||||
},
|
||||
"position": {
|
||||
"x": 66.38770028934243,
|
||||
"y": 749.744424427066
|
||||
"x": 133.95771636602308,
|
||||
"y": 753.6499167055161
|
||||
},
|
||||
"positionAbsolute": {
|
||||
"x": 66.38770028934243,
|
||||
"y": 749.744424427066
|
||||
},
|
||||
"resizing": false,
|
||||
"selected": false,
|
||||
"selected": true,
|
||||
"style": {
|
||||
"height": 250,
|
||||
"width": 600
|
||||
"width": 324
|
||||
},
|
||||
"type": "noteNode",
|
||||
"width": 600
|
||||
"width": 324
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-bk1gl",
|
||||
"id": "note-fR64x",
|
||||
"node": {
|
||||
"description": "### 💡 Add your OpenAI API key here 👇",
|
||||
"display_name": "",
|
||||
|
|
@ -544,10 +511,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 324,
|
||||
"id": "note-bk1gl",
|
||||
"id": "note-fR64x",
|
||||
"measured": {
|
||||
"height": 324,
|
||||
"width": 326
|
||||
"width": 324
|
||||
},
|
||||
"position": {
|
||||
"x": 1075.829573520873,
|
||||
|
|
@ -568,11 +535,9 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "ChatOutput-S56f5",
|
||||
"id": "ChatOutput-qv4Kg",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -620,9 +585,7 @@
|
|||
"display_name": "Background Color",
|
||||
"dynamic": false,
|
||||
"info": "The background color of the icon.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "background_color",
|
||||
|
|
@ -642,9 +605,7 @@
|
|||
"display_name": "Icon",
|
||||
"dynamic": false,
|
||||
"info": "The icon of the message.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "chat_icon",
|
||||
|
|
@ -682,9 +643,7 @@
|
|||
"display_name": "Data Template",
|
||||
"dynamic": false,
|
||||
"info": "Template to convert Data to Text. If left empty, it will be dynamically set to the Data's text key.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "data_template",
|
||||
|
|
@ -704,9 +663,7 @@
|
|||
"display_name": "Text",
|
||||
"dynamic": false,
|
||||
"info": "Message to be passed as output.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "input_value",
|
||||
|
|
@ -727,10 +684,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Type of sender.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User"
|
||||
],
|
||||
"options": ["Machine", "User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -746,9 +700,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Name of the sender.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -768,9 +720,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -806,9 +756,7 @@
|
|||
"display_name": "Text Color",
|
||||
"dynamic": false,
|
||||
"info": "The text color of the name",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "text_color",
|
||||
|
|
@ -829,10 +777,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 234,
|
||||
"id": "ChatOutput-S56f5",
|
||||
"id": "ChatOutput-qv4Kg",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1460.070372772908,
|
||||
|
|
@ -848,12 +796,9 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "OpenAIModel-6Uq9A",
|
||||
"id": "OpenAIModel-kVbrq",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"LanguageModel",
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["LanguageModel", "Message"],
|
||||
"beta": false,
|
||||
"category": "models",
|
||||
"conditional_paths": [],
|
||||
|
|
@ -903,9 +848,7 @@
|
|||
"display_name": "Language Model",
|
||||
"method": "build_model",
|
||||
"name": "model_output",
|
||||
"required_inputs": [
|
||||
"api_key"
|
||||
],
|
||||
"required_inputs": ["api_key"],
|
||||
"selected": "LanguageModel",
|
||||
"tool_mode": true,
|
||||
"types": [
|
||||
|
|
@ -924,9 +867,7 @@
|
|||
"display_name": "OpenAI API Key",
|
||||
"dynamic": false,
|
||||
"info": "The OpenAI API Key to use for the OpenAI model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"load_from_db": true,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
|
|
@ -935,7 +876,7 @@
|
|||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "str",
|
||||
"value": "OPENAI_API_KEY"
|
||||
"value": ""
|
||||
},
|
||||
"code": {
|
||||
"advanced": true,
|
||||
|
|
@ -961,9 +902,7 @@
|
|||
"display_name": "Input",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -1127,9 +1066,7 @@
|
|||
"display_name": "System Message",
|
||||
"dynamic": false,
|
||||
"info": "System message to pass to the model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -1180,23 +1117,23 @@
|
|||
"type": "OpenAIModel"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "OpenAIModel-6Uq9A",
|
||||
"id": "OpenAIModel-kVbrq",
|
||||
"measured": {
|
||||
"height": 734,
|
||||
"width": 360
|
||||
"height": 653,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1071.3015591664102,
|
||||
"y": 724.6650363109242
|
||||
},
|
||||
"selected": true,
|
||||
"selected": false,
|
||||
"type": "genericNode"
|
||||
}
|
||||
],
|
||||
"viewport": {
|
||||
"x": 17.718959514444805,
|
||||
"y": -430.8864814643483,
|
||||
"zoom": 0.8320153537381677
|
||||
"x": 14.822536028026889,
|
||||
"y": -179.77383984286314,
|
||||
"zoom": 0.7681490030215967
|
||||
}
|
||||
},
|
||||
"description": "Perform basic prompting with an OpenAI model.",
|
||||
|
|
@ -1207,7 +1144,5 @@
|
|||
"is_component": false,
|
||||
"last_tested_version": "1.0.19.post2",
|
||||
"name": "Basic Prompting",
|
||||
"tags": [
|
||||
"chatbots"
|
||||
]
|
||||
}
|
||||
"tags": ["chatbots"]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,27 +7,22 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "ParseData",
|
||||
"id": "ParseData-E96Aq",
|
||||
"id": "ParseData-4Sckw",
|
||||
"name": "text",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "references",
|
||||
"id": "Prompt-so3We",
|
||||
"inputTypes": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"id": "Prompt-65R68",
|
||||
"inputTypes": ["Message", "Text"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-ParseData-E96Aq{œdataTypeœ:œParseDataœ,œidœ:œParseData-E96Aqœ,œnameœ:œtextœ,œoutput_typesœ:[œMessageœ]}-Prompt-so3We{œfieldNameœ:œreferencesœ,œidœ:œPrompt-so3Weœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"source": "ParseData-E96Aq",
|
||||
"sourceHandle": "{œdataTypeœ: œParseDataœ, œidœ: œParseData-E96Aqœ, œnameœ: œtextœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-so3We",
|
||||
"targetHandle": "{œfieldNameœ: œreferencesœ, œidœ: œPrompt-so3Weœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-ParseData-4Sckw{œdataTypeœ:œParseDataœ,œidœ:œParseData-4Sckwœ,œnameœ:œtextœ,œoutput_typesœ:[œMessageœ]}-Prompt-65R68{œfieldNameœ:œreferencesœ,œidœ:œPrompt-65R68œ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"source": "ParseData-4Sckw",
|
||||
"sourceHandle": "{œdataTypeœ: œParseDataœ, œidœ: œParseData-4Sckwœ, œnameœ: œtextœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-65R68",
|
||||
"targetHandle": "{œfieldNameœ: œreferencesœ, œidœ: œPrompt-65R68œ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -35,104 +30,88 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "TextInput",
|
||||
"id": "TextInput-NyDgC",
|
||||
"id": "TextInput-t88FI",
|
||||
"name": "text",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "instructions",
|
||||
"id": "Prompt-so3We",
|
||||
"inputTypes": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"id": "Prompt-65R68",
|
||||
"inputTypes": ["Message", "Text"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-TextInput-NyDgC{œdataTypeœ:œTextInputœ,œidœ:œTextInput-NyDgCœ,œnameœ:œtextœ,œoutput_typesœ:[œMessageœ]}-Prompt-so3We{œfieldNameœ:œinstructionsœ,œidœ:œPrompt-so3Weœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"source": "TextInput-NyDgC",
|
||||
"sourceHandle": "{œdataTypeœ: œTextInputœ, œidœ: œTextInput-NyDgCœ, œnameœ: œtextœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-so3We",
|
||||
"targetHandle": "{œfieldNameœ: œinstructionsœ, œidœ: œPrompt-so3Weœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-TextInput-t88FI{œdataTypeœ:œTextInputœ,œidœ:œTextInput-t88FIœ,œnameœ:œtextœ,œoutput_typesœ:[œMessageœ]}-Prompt-65R68{œfieldNameœ:œinstructionsœ,œidœ:œPrompt-65R68œ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"source": "TextInput-t88FI",
|
||||
"sourceHandle": "{œdataTypeœ: œTextInputœ, œidœ: œTextInput-t88FIœ, œnameœ: œtextœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-65R68",
|
||||
"targetHandle": "{œfieldNameœ: œinstructionsœ, œidœ: œPrompt-65R68œ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-so3We",
|
||||
"id": "Prompt-65R68",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "OpenAIModel-PSlnR",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "OpenAIModel-MyAsQ",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Prompt-so3We{œdataTypeœ:œPromptœ,œidœ:œPrompt-so3Weœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-PSlnR{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-PSlnRœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-so3We",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-so3Weœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-PSlnR",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-PSlnRœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Prompt-65R68{œdataTypeœ:œPromptœ,œidœ:œPrompt-65R68œ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-MyAsQ{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-MyAsQœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-65R68",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-65R68œ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-MyAsQ",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-MyAsQœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "OpenAIModel",
|
||||
"id": "OpenAIModel-PSlnR",
|
||||
"id": "OpenAIModel-MyAsQ",
|
||||
"name": "text_output",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "ChatOutput-rX0kw",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "ChatOutput-BE4YI",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-OpenAIModel-PSlnR{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-PSlnRœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-rX0kw{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-rX0kwœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "OpenAIModel-PSlnR",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-PSlnRœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-rX0kw",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-rX0kwœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-OpenAIModel-MyAsQ{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-MyAsQœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-BE4YI{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-BE4YIœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "OpenAIModel-MyAsQ",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-MyAsQœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-BE4YI",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-BE4YIœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "URL",
|
||||
"id": "URL-3QRyA",
|
||||
"id": "URL-EPEnt",
|
||||
"name": "data",
|
||||
"output_types": [
|
||||
"Data"
|
||||
]
|
||||
"output_types": ["Data"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "data",
|
||||
"id": "ParseData-E96Aq",
|
||||
"inputTypes": [
|
||||
"Data"
|
||||
],
|
||||
"id": "ParseData-4Sckw",
|
||||
"inputTypes": ["Data"],
|
||||
"type": "other"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__URL-3QRyA{œdataTypeœ:œURLœ,œidœ:œURL-3QRyAœ,œnameœ:œdataœ,œoutput_typesœ:[œDataœ]}-ParseData-E96Aq{œfieldNameœ:œdataœ,œidœ:œParseData-E96Aqœ,œinputTypesœ:[œDataœ],œtypeœ:œotherœ}",
|
||||
"source": "URL-3QRyA",
|
||||
"sourceHandle": "{œdataTypeœ: œURLœ, œidœ: œURL-3QRyAœ, œnameœ: œdataœ, œoutput_typesœ: [œDataœ]}",
|
||||
"target": "ParseData-E96Aq",
|
||||
"targetHandle": "{œfieldNameœ: œdataœ, œidœ: œParseData-E96Aqœ, œinputTypesœ: [œDataœ], œtypeœ: œotherœ}"
|
||||
"id": "reactflow__edge-URL-EPEnt{œdataTypeœ:œURLœ,œidœ:œURL-EPEntœ,œnameœ:œdataœ,œoutput_typesœ:[œDataœ]}-ParseData-4Sckw{œfieldNameœ:œdataœ,œidœ:œParseData-4Sckwœ,œinputTypesœ:[œDataœ],œtypeœ:œotherœ}",
|
||||
"source": "URL-EPEnt",
|
||||
"sourceHandle": "{œdataTypeœ: œURLœ, œidœ: œURL-EPEntœ, œnameœ: œdataœ, œoutput_typesœ: [œDataœ]}",
|
||||
"target": "ParseData-4Sckw",
|
||||
"targetHandle": "{œfieldNameœ: œdataœ, œidœ: œParseData-4Sckwœ, œinputTypesœ: [œDataœ], œtypeœ: œotherœ}"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
|
|
@ -140,11 +119,9 @@
|
|||
"data": {
|
||||
"description": "Convert Data into plain text following a specified template.",
|
||||
"display_name": "Parse Data",
|
||||
"id": "ParseData-E96Aq",
|
||||
"id": "ParseData-4Sckw",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -152,11 +129,7 @@
|
|||
"display_name": "Parse Data",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"data",
|
||||
"template",
|
||||
"sep"
|
||||
],
|
||||
"field_order": ["data", "template", "sep"],
|
||||
"frozen": false,
|
||||
"icon": "message-square",
|
||||
"legacy": false,
|
||||
|
|
@ -217,9 +190,7 @@
|
|||
"display_name": "Data",
|
||||
"dynamic": false,
|
||||
"info": "The data to convert to text.",
|
||||
"input_types": [
|
||||
"Data"
|
||||
],
|
||||
"input_types": ["Data"],
|
||||
"list": true,
|
||||
"name": "data",
|
||||
"placeholder": "",
|
||||
|
|
@ -252,9 +223,7 @@
|
|||
"display_name": "Template",
|
||||
"dynamic": false,
|
||||
"info": "The template to use for formatting the data. It can contain the keys {text}, {data} or any other key in the Data.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -274,10 +243,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 302,
|
||||
"id": "ParseData-E96Aq",
|
||||
"id": "ParseData-4Sckw",
|
||||
"measured": {
|
||||
"height": 302,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 955.6736985046297,
|
||||
|
|
@ -295,26 +264,19 @@
|
|||
"data": {
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"id": "Prompt-so3We",
|
||||
"id": "Prompt-65R68",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {
|
||||
"template": [
|
||||
"references",
|
||||
"instructions"
|
||||
]
|
||||
"template": ["references", "instructions"]
|
||||
},
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"template"
|
||||
],
|
||||
"field_order": ["template"],
|
||||
"frozen": false,
|
||||
"icon": "prompts",
|
||||
"legacy": false,
|
||||
|
|
@ -365,10 +327,7 @@
|
|||
"fileTypes": [],
|
||||
"file_path": "",
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"input_types": ["Message", "Text"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -389,10 +348,7 @@
|
|||
"fileTypes": [],
|
||||
"file_path": "",
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"input_types": ["Message", "Text"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -427,9 +383,7 @@
|
|||
"display_name": "Tool Placeholder",
|
||||
"dynamic": false,
|
||||
"info": "A placeholder input for tool mode.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "tool_placeholder",
|
||||
|
|
@ -449,10 +403,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 433,
|
||||
"id": "Prompt-so3We",
|
||||
"id": "Prompt-65R68",
|
||||
"measured": {
|
||||
"height": 433,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1341.1018009526915,
|
||||
|
|
@ -470,11 +424,9 @@
|
|||
"data": {
|
||||
"description": "Get text inputs from the Playground.",
|
||||
"display_name": "Instructions",
|
||||
"id": "TextInput-NyDgC",
|
||||
"id": "TextInput-t88FI",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -482,9 +434,7 @@
|
|||
"display_name": "Instructions",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"input_value"
|
||||
],
|
||||
"field_order": ["input_value"],
|
||||
"frozen": false,
|
||||
"icon": "type",
|
||||
"legacy": false,
|
||||
|
|
@ -533,9 +483,7 @@
|
|||
"display_name": "Text",
|
||||
"dynamic": false,
|
||||
"info": "Text to be passed as input.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -555,10 +503,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 234,
|
||||
"id": "TextInput-NyDgC",
|
||||
"id": "TextInput-t88FI",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 955.8314364398983,
|
||||
|
|
@ -576,11 +524,9 @@
|
|||
"data": {
|
||||
"description": "Display a chat message in the Playground.",
|
||||
"display_name": "Chat Output",
|
||||
"id": "ChatOutput-rX0kw",
|
||||
"id": "ChatOutput-BE4YI",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -626,9 +572,7 @@
|
|||
"display_name": "Background Color",
|
||||
"dynamic": false,
|
||||
"info": "The background color of the icon.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "background_color",
|
||||
|
|
@ -647,9 +591,7 @@
|
|||
"display_name": "Icon",
|
||||
"dynamic": false,
|
||||
"info": "The icon of the message.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "chat_icon",
|
||||
|
|
@ -685,9 +627,7 @@
|
|||
"display_name": "Data Template",
|
||||
"dynamic": false,
|
||||
"info": "Template to convert Data to Text. If left empty, it will be dynamically set to the Data's text key.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "data_template",
|
||||
|
|
@ -705,9 +645,7 @@
|
|||
"display_name": "Text",
|
||||
"dynamic": false,
|
||||
"info": "Message to be passed as output.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "input_value",
|
||||
|
|
@ -726,10 +664,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Type of sender.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User"
|
||||
],
|
||||
"options": ["Machine", "User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -743,9 +678,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Name of the sender.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -763,9 +696,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -800,9 +731,7 @@
|
|||
"display_name": "Text Color",
|
||||
"dynamic": false,
|
||||
"info": "The text color of the name",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "text_color",
|
||||
|
|
@ -821,10 +750,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 234,
|
||||
"id": "ChatOutput-rX0kw",
|
||||
"id": "ChatOutput-BE4YI",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 2097.489047349972,
|
||||
|
|
@ -840,7 +769,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-o0nz4",
|
||||
"id": "note-lriuW",
|
||||
"node": {
|
||||
"description": "## URL Component Setup\n\n**Purpose:**\nFetch and process content from the web to use as reference material for creating a blog post.\n\n**Instructions:**\n1. **Input URLs**: List the URLs of web pages whose content you want to fetch. Ensure the URLs start with `http://` or `https://`.\n2. **Select Output Format**:\n - **Text**: To extract plain text from the pages.\n - **Raw HTML**: To retrieve the raw HTML content for advanced uses.\n\n**Tips**:\n- Double-check URL formats to prevent any data fetching errors.\n- Use the '+' button to add multiple URLs as needed for comprehensive references.\n",
|
||||
"display_name": "",
|
||||
|
|
@ -852,11 +781,11 @@
|
|||
"type": "note"
|
||||
},
|
||||
"dragging": false,
|
||||
"height": 329,
|
||||
"id": "note-o0nz4",
|
||||
"height": 324,
|
||||
"id": "note-lriuW",
|
||||
"measured": {
|
||||
"height": 329,
|
||||
"width": 328
|
||||
"height": 324,
|
||||
"width": 325
|
||||
},
|
||||
"position": {
|
||||
"x": 484.73635938598477,
|
||||
|
|
@ -870,14 +799,14 @@
|
|||
"selected": false,
|
||||
"style": {
|
||||
"height": 329,
|
||||
"width": 414
|
||||
"width": 324
|
||||
},
|
||||
"type": "noteNode",
|
||||
"width": 414
|
||||
"width": 324
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-ioTU5",
|
||||
"id": "note-1oPzi",
|
||||
"node": {
|
||||
"description": "# Blog Writing Flow Overview\n\n**Workflow Description:**\nThis flow assists in creating a blog post by using content fetched from URLs and user-provided instructions. It combines external references and user inputs to generate coherent and context-rich text.\n\n**Components**:\n1. **URL Component**: Fetches reference content from specified web pages.\n2. **Parse Data**: Converts the fetched content into a text format.\n3. **Text Input**: Accepts user-specific instructions for the blog post.\n4. **Prompt with Variables**: Merges references and instructions into a dynamic writing prompt.\n5. **OpenAI Model**: Generates the blog post using an AI language model.\n6. **Chat Output**: Displays the final blog text for user review and further refinement.\n\n**Steps to Execute**:\n1. Enter the relevant URLs and specify the output format in the **URL Component**.\n2. Provide detailed writing **Instructions** for AI to follow.\n3. Run the flow to generate the blog and view the result in **Chat Output**.\n\n**Benefits**:\n- Simplifies blog creation by using AI to structure and write content.\n- Incorporates comprehensive reference material to enhance post depth and accuracy.",
|
||||
"display_name": "",
|
||||
|
|
@ -887,11 +816,11 @@
|
|||
"type": "note"
|
||||
},
|
||||
"dragging": false,
|
||||
"height": 509,
|
||||
"id": "note-ioTU5",
|
||||
"height": 486,
|
||||
"id": "note-1oPzi",
|
||||
"measured": {
|
||||
"height": 509,
|
||||
"width": 328
|
||||
"height": 486,
|
||||
"width": 325
|
||||
},
|
||||
"position": {
|
||||
"x": -78.41970365609802,
|
||||
|
|
@ -908,11 +837,11 @@
|
|||
"width": 562
|
||||
},
|
||||
"type": "noteNode",
|
||||
"width": 562
|
||||
"width": 324
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-OFdB9",
|
||||
"id": "note-qhsOB",
|
||||
"node": {
|
||||
"description": "## Get Your OpenAI API Key\n**Steps**:\n1. **Visit** [OpenAI's API Key Page](https://platform.openai.com/api-keys).\n\n2. **Log In/Sign Up**:\n - Log in or create a new OpenAI account.\n\n3. **Generate API Key**:\n - Click \"Create New Secret Key\" to obtain your key.\n\n4. **Store Your Key Securely**:\n - Note it down as it will only display once.\n\n5. **Enter API Key**:\n - Input your key in the OpenAI API Key field within the component setup.\n\nKeep your key safe and manage it responsibly!",
|
||||
"display_name": "",
|
||||
|
|
@ -925,14 +854,14 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 324,
|
||||
"id": "note-OFdB9",
|
||||
"id": "note-qhsOB",
|
||||
"measured": {
|
||||
"height": 324,
|
||||
"width": 328
|
||||
"width": 325
|
||||
},
|
||||
"position": {
|
||||
"x": 1703.974189852056,
|
||||
"y": 125.15366878585462
|
||||
"x": 1702.078126574358,
|
||||
"y": 121.36154223045867
|
||||
},
|
||||
"positionAbsolute": {
|
||||
"x": 1703.974189852056,
|
||||
|
|
@ -945,16 +874,13 @@
|
|||
"width": 343
|
||||
},
|
||||
"type": "noteNode",
|
||||
"width": 343
|
||||
"width": 324
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "OpenAIModel-PSlnR",
|
||||
"id": "OpenAIModel-MyAsQ",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"LanguageModel",
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["LanguageModel", "Message"],
|
||||
"beta": false,
|
||||
"category": "models",
|
||||
"conditional_paths": [],
|
||||
|
|
@ -1004,9 +930,7 @@
|
|||
"display_name": "Language Model",
|
||||
"method": "build_model",
|
||||
"name": "model_output",
|
||||
"required_inputs": [
|
||||
"api_key"
|
||||
],
|
||||
"required_inputs": ["api_key"],
|
||||
"selected": "LanguageModel",
|
||||
"tool_mode": true,
|
||||
"types": [
|
||||
|
|
@ -1025,9 +949,7 @@
|
|||
"display_name": "OpenAI API Key",
|
||||
"dynamic": false,
|
||||
"info": "The OpenAI API Key to use for the OpenAI model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"load_from_db": true,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
|
|
@ -1036,7 +958,7 @@
|
|||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "str",
|
||||
"value": "OPENAI_API_KEY"
|
||||
"value": ""
|
||||
},
|
||||
"code": {
|
||||
"advanced": true,
|
||||
|
|
@ -1062,9 +984,7 @@
|
|||
"display_name": "Input",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -1228,9 +1148,7 @@
|
|||
"display_name": "System Message",
|
||||
"dynamic": false,
|
||||
"info": "System message to pass to the model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -1281,10 +1199,10 @@
|
|||
"type": "OpenAIModel"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "OpenAIModel-PSlnR",
|
||||
"id": "OpenAIModel-MyAsQ",
|
||||
"measured": {
|
||||
"height": 734,
|
||||
"width": 360
|
||||
"height": 653,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1715.4141756503298,
|
||||
|
|
@ -1295,13 +1213,9 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "URL-3QRyA",
|
||||
"id": "URL-EPEnt",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data",
|
||||
"DataFrame",
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Data", "DataFrame", "Message"],
|
||||
"beta": false,
|
||||
"category": "data",
|
||||
"conditional_paths": [],
|
||||
|
|
@ -1310,10 +1224,7 @@
|
|||
"display_name": "URL",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"urls",
|
||||
"format"
|
||||
],
|
||||
"field_order": ["urls", "format"],
|
||||
"frozen": false,
|
||||
"icon": "layout-template",
|
||||
"key": "URL",
|
||||
|
|
@ -1393,10 +1304,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Output Format. Use 'Text' to extract the text from the HTML or 'Raw HTML' for the raw HTML content.",
|
||||
"name": "format",
|
||||
"options": [
|
||||
"Text",
|
||||
"Raw HTML"
|
||||
],
|
||||
"options": ["Text", "Raw HTML"],
|
||||
"options_metadata": [],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
|
|
@ -1413,9 +1321,7 @@
|
|||
"display_name": "URLs",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": true,
|
||||
"list_add_label": "Add URL",
|
||||
"load_from_db": false,
|
||||
|
|
@ -1428,10 +1334,7 @@
|
|||
"trace_as_input": true,
|
||||
"trace_as_metadata": true,
|
||||
"type": "str",
|
||||
"value": [
|
||||
"https://langflow.org/",
|
||||
"https://docs.langflow.org/"
|
||||
]
|
||||
"value": ["https://langflow.org/", "https://docs.langflow.org/"]
|
||||
}
|
||||
},
|
||||
"tool_mode": false
|
||||
|
|
@ -1440,10 +1343,10 @@
|
|||
"type": "URL"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "URL-3QRyA",
|
||||
"id": "URL-EPEnt",
|
||||
"measured": {
|
||||
"height": 522,
|
||||
"width": 360
|
||||
"height": 465,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 498.72695054312635,
|
||||
|
|
@ -1454,9 +1357,9 @@
|
|||
}
|
||||
],
|
||||
"viewport": {
|
||||
"x": 118.07504778051486,
|
||||
"y": 77.01438585334114,
|
||||
"zoom": 0.5753720075740282
|
||||
"x": 107.17740467666556,
|
||||
"y": 281.84175643433355,
|
||||
"zoom": 0.5274085584390961
|
||||
}
|
||||
},
|
||||
"description": "Auto-generate a customized blog post from instructions and referenced articles.",
|
||||
|
|
@ -1467,8 +1370,5 @@
|
|||
"is_component": false,
|
||||
"last_tested_version": "1.0.19.post2",
|
||||
"name": "Blog Writer",
|
||||
"tags": [
|
||||
"chatbots",
|
||||
"content-generation"
|
||||
]
|
||||
}
|
||||
"tags": ["chatbots", "content-generation"]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,28 +7,23 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Memory",
|
||||
"id": "Memory-xB9zW",
|
||||
"id": "Memory-v5bRq",
|
||||
"name": "messages_text",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "CHAT_HISTORY",
|
||||
"id": "Prompt-t7tN0",
|
||||
"inputTypes": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"id": "Prompt-QIyYT",
|
||||
"inputTypes": ["Message", "Text"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Memory-xB9zW{œdataTypeœ:œMemoryœ,œidœ:œMemory-xB9zWœ,œnameœ:œmessages_textœ,œoutput_typesœ:[œMessageœ]}-Prompt-t7tN0{œfieldNameœ:œCHAT_HISTORYœ,œidœ:œPrompt-t7tN0œ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"id": "reactflow__edge-Memory-v5bRq{œdataTypeœ:œMemoryœ,œidœ:œMemory-v5bRqœ,œnameœ:œmessages_textœ,œoutput_typesœ:[œMessageœ]}-Prompt-QIyYT{œfieldNameœ:œCHAT_HISTORYœ,œidœ:œPrompt-QIyYTœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "Memory-xB9zW",
|
||||
"sourceHandle": "{œdataTypeœ: œMemoryœ, œidœ: œMemory-xB9zWœ, œnameœ: œmessages_textœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-t7tN0",
|
||||
"targetHandle": "{œfieldNameœ: œCHAT_HISTORYœ, œidœ: œPrompt-t7tN0œ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
"source": "Memory-v5bRq",
|
||||
"sourceHandle": "{œdataTypeœ: œMemoryœ, œidœ: œMemory-v5bRqœ, œnameœ: œmessages_textœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-QIyYT",
|
||||
"targetHandle": "{œfieldNameœ: œCHAT_HISTORYœ, œidœ: œPrompt-QIyYTœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -36,28 +31,23 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "ChatInput",
|
||||
"id": "ChatInput-g2Y61",
|
||||
"id": "ChatInput-Z88lk",
|
||||
"name": "message",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "USER_INPUT",
|
||||
"id": "Prompt-t7tN0",
|
||||
"inputTypes": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"id": "Prompt-QIyYT",
|
||||
"inputTypes": ["Message", "Text"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-ChatInput-g2Y61{œdataTypeœ:œChatInputœ,œidœ:œChatInput-g2Y61œ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-Prompt-t7tN0{œfieldNameœ:œUSER_INPUTœ,œidœ:œPrompt-t7tN0œ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"id": "reactflow__edge-ChatInput-Z88lk{œdataTypeœ:œChatInputœ,œidœ:œChatInput-Z88lkœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-Prompt-QIyYT{œfieldNameœ:œUSER_INPUTœ,œidœ:œPrompt-QIyYTœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "ChatInput-g2Y61",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-g2Y61œ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-t7tN0",
|
||||
"targetHandle": "{œfieldNameœ: œUSER_INPUTœ, œidœ: œPrompt-t7tN0œ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
"source": "ChatInput-Z88lk",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-Z88lkœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-QIyYT",
|
||||
"targetHandle": "{œfieldNameœ: œUSER_INPUTœ, œidœ: œPrompt-QIyYTœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -65,27 +55,22 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "URL",
|
||||
"id": "URL-l7pdF",
|
||||
"id": "URL-wNOPd",
|
||||
"name": "text",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "EXAMPLE_COMPONENTS",
|
||||
"id": "Prompt-t7tN0",
|
||||
"inputTypes": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"id": "Prompt-QIyYT",
|
||||
"inputTypes": ["Message", "Text"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-URL-l7pdF{œdataTypeœ:œURLœ,œidœ:œURL-l7pdFœ,œnameœ:œtextœ,œoutput_typesœ:[œMessageœ]}-Prompt-t7tN0{œfieldNameœ:œEXAMPLE_COMPONENTSœ,œidœ:œPrompt-t7tN0œ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"source": "URL-l7pdF",
|
||||
"sourceHandle": "{œdataTypeœ: œURLœ, œidœ: œURL-l7pdFœ, œnameœ: œtextœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-t7tN0",
|
||||
"targetHandle": "{œfieldNameœ: œEXAMPLE_COMPONENTSœ, œidœ: œPrompt-t7tN0œ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-URL-wNOPd{œdataTypeœ:œURLœ,œidœ:œURL-wNOPdœ,œnameœ:œtextœ,œoutput_typesœ:[œMessageœ]}-Prompt-QIyYT{œfieldNameœ:œEXAMPLE_COMPONENTSœ,œidœ:œPrompt-QIyYTœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"source": "URL-wNOPd",
|
||||
"sourceHandle": "{œdataTypeœ: œURLœ, œidœ: œURL-wNOPdœ, œnameœ: œtextœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-QIyYT",
|
||||
"targetHandle": "{œfieldNameœ: œEXAMPLE_COMPONENTSœ, œidœ: œPrompt-QIyYTœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -93,27 +78,22 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "URL",
|
||||
"id": "URL-vp2La",
|
||||
"id": "URL-pFAuR",
|
||||
"name": "text",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "BASE_COMPONENT_CODE",
|
||||
"id": "Prompt-t7tN0",
|
||||
"inputTypes": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"id": "Prompt-QIyYT",
|
||||
"inputTypes": ["Message", "Text"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-URL-vp2La{œdataTypeœ:œURLœ,œidœ:œURL-vp2Laœ,œnameœ:œtextœ,œoutput_typesœ:[œMessageœ]}-Prompt-t7tN0{œfieldNameœ:œBASE_COMPONENT_CODEœ,œidœ:œPrompt-t7tN0œ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"source": "URL-vp2La",
|
||||
"sourceHandle": "{œdataTypeœ: œURLœ, œidœ: œURL-vp2Laœ, œnameœ: œtextœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-t7tN0",
|
||||
"targetHandle": "{œfieldNameœ: œBASE_COMPONENT_CODEœ, œidœ: œPrompt-t7tN0œ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-URL-pFAuR{œdataTypeœ:œURLœ,œidœ:œURL-pFAuRœ,œnameœ:œtextœ,œoutput_typesœ:[œMessageœ]}-Prompt-QIyYT{œfieldNameœ:œBASE_COMPONENT_CODEœ,œidœ:œPrompt-QIyYTœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"source": "URL-pFAuR",
|
||||
"sourceHandle": "{œdataTypeœ: œURLœ, œidœ: œURL-pFAuRœ, œnameœ: œtextœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-QIyYT",
|
||||
"targetHandle": "{œfieldNameœ: œBASE_COMPONENT_CODEœ, œidœ: œPrompt-QIyYTœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -121,77 +101,66 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "URL",
|
||||
"id": "URL-ak8Jx",
|
||||
"id": "URL-KARv3",
|
||||
"name": "text",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "CUSTOM_COMPONENT_CODE",
|
||||
"id": "Prompt-t7tN0",
|
||||
"inputTypes": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"id": "Prompt-QIyYT",
|
||||
"inputTypes": ["Message", "Text"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-URL-ak8Jx{œdataTypeœ:œURLœ,œidœ:œURL-ak8Jxœ,œnameœ:œtextœ,œoutput_typesœ:[œMessageœ]}-Prompt-t7tN0{œfieldNameœ:œCUSTOM_COMPONENT_CODEœ,œidœ:œPrompt-t7tN0œ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"source": "URL-ak8Jx",
|
||||
"sourceHandle": "{œdataTypeœ: œURLœ, œidœ: œURL-ak8Jxœ, œnameœ: œtextœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-t7tN0",
|
||||
"targetHandle": "{œfieldNameœ: œCUSTOM_COMPONENT_CODEœ, œidœ: œPrompt-t7tN0œ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-URL-KARv3{œdataTypeœ:œURLœ,œidœ:œURL-KARv3œ,œnameœ:œtextœ,œoutput_typesœ:[œMessageœ]}-Prompt-QIyYT{œfieldNameœ:œCUSTOM_COMPONENT_CODEœ,œidœ:œPrompt-QIyYTœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"source": "URL-KARv3",
|
||||
"sourceHandle": "{œdataTypeœ: œURLœ, œidœ: œURL-KARv3œ, œnameœ: œtextœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-QIyYT",
|
||||
"targetHandle": "{œfieldNameœ: œCUSTOM_COMPONENT_CODEœ, œidœ: œPrompt-QIyYTœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-t7tN0",
|
||||
"id": "Prompt-QIyYT",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "AnthropicModel-L37Qm",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "AnthropicModel-RQQCm",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__Prompt-t7tN0{œdataTypeœ:œPromptœ,œidœ:œPrompt-t7tN0œ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-AnthropicModel-L37Qm{œfieldNameœ:œinput_valueœ,œidœ:œAnthropicModel-L37Qmœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-t7tN0",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-t7tN0œ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "AnthropicModel-L37Qm",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAnthropicModel-L37Qmœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Prompt-QIyYT{œdataTypeœ:œPromptœ,œidœ:œPrompt-QIyYTœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-AnthropicModel-RQQCm{œfieldNameœ:œinput_valueœ,œidœ:œAnthropicModel-RQQCmœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-QIyYT",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-QIyYTœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "AnthropicModel-RQQCm",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAnthropicModel-RQQCmœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "AnthropicModel",
|
||||
"id": "AnthropicModel-L37Qm",
|
||||
"id": "AnthropicModel-RQQCm",
|
||||
"name": "text_output",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "ChatOutput-y7MoT",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "ChatOutput-Jj8M6",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__AnthropicModel-L37Qm{œdataTypeœ:œAnthropicModelœ,œidœ:œAnthropicModel-L37Qmœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-y7MoT{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-y7MoTœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "AnthropicModel-L37Qm",
|
||||
"sourceHandle": "{œdataTypeœ: œAnthropicModelœ, œidœ: œAnthropicModel-L37Qmœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-y7MoT",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-y7MoTœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-AnthropicModel-RQQCm{œdataTypeœ:œAnthropicModelœ,œidœ:œAnthropicModel-RQQCmœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-Jj8M6{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-Jj8M6œ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "AnthropicModel-RQQCm",
|
||||
"sourceHandle": "{œdataTypeœ: œAnthropicModelœ, œidœ: œAnthropicModel-RQQCmœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-Jj8M6",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-Jj8M6œ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
|
|
@ -199,11 +168,9 @@
|
|||
"data": {
|
||||
"description": "Get chat inputs from the Playground.",
|
||||
"display_name": "Chat Input",
|
||||
"id": "ChatInput-g2Y61",
|
||||
"id": "ChatInput-Z88lk",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -252,9 +219,7 @@
|
|||
"display_name": "Background Color",
|
||||
"dynamic": false,
|
||||
"info": "The background color of the icon.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "background_color",
|
||||
|
|
@ -274,9 +239,7 @@
|
|||
"display_name": "Icon",
|
||||
"dynamic": false,
|
||||
"info": "The icon of the message.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "chat_icon",
|
||||
|
|
@ -379,10 +342,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Type of sender.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User"
|
||||
],
|
||||
"options": ["Machine", "User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -398,9 +358,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Name of the sender.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -420,9 +378,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -458,9 +414,7 @@
|
|||
"display_name": "Text Color",
|
||||
"dynamic": false,
|
||||
"info": "The text color of the name",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "text_color",
|
||||
|
|
@ -481,10 +435,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 231,
|
||||
"id": "ChatInput-g2Y61",
|
||||
"id": "ChatInput-Z88lk",
|
||||
"measured": {
|
||||
"height": 231,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1436.7228707197569,
|
||||
|
|
@ -502,12 +456,9 @@
|
|||
"data": {
|
||||
"description": "Retrieves stored chat messages from Langflow tables or an external memory.",
|
||||
"display_name": "Chat Memory",
|
||||
"id": "Memory-xB9zW",
|
||||
"id": "Memory-v5bRq",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data",
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Data", "Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -585,9 +536,7 @@
|
|||
"display_name": "External Memory",
|
||||
"dynamic": false,
|
||||
"info": "Retrieve messages from an external memory. If empty, it will use the Langflow tables.",
|
||||
"input_types": [
|
||||
"Memory"
|
||||
],
|
||||
"input_types": ["Memory"],
|
||||
"list": false,
|
||||
"name": "memory",
|
||||
"placeholder": "",
|
||||
|
|
@ -622,10 +571,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Order of the messages.",
|
||||
"name": "order",
|
||||
"options": [
|
||||
"Ascending",
|
||||
"Descending"
|
||||
],
|
||||
"options": ["Ascending", "Descending"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -643,11 +589,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Filter by sender type.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User",
|
||||
"Machine and User"
|
||||
],
|
||||
"options": ["Machine", "User", "Machine and User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -663,9 +605,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Filter by sender name.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -685,9 +625,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -707,9 +645,7 @@
|
|||
"display_name": "Template",
|
||||
"dynamic": false,
|
||||
"info": "The template to use for formatting the data. It can contain the keys {text}, {sender} or any other key in the message data.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -731,10 +667,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 262,
|
||||
"id": "Memory-xB9zW",
|
||||
"id": "Memory-v5bRq",
|
||||
"measured": {
|
||||
"height": 262,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1830.6888981898887,
|
||||
|
|
@ -752,11 +688,9 @@
|
|||
"data": {
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"id": "Prompt-t7tN0",
|
||||
"id": "Prompt-QIyYT",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {
|
||||
|
|
@ -772,9 +706,7 @@
|
|||
"display_name": "Prompt",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"template"
|
||||
],
|
||||
"field_order": ["template"],
|
||||
"frozen": false,
|
||||
"icon": "prompts",
|
||||
"legacy": false,
|
||||
|
|
@ -806,10 +738,7 @@
|
|||
"fileTypes": [],
|
||||
"file_path": "",
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"input_types": ["Message", "Text"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -829,10 +758,7 @@
|
|||
"fileTypes": [],
|
||||
"file_path": "",
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"input_types": ["Message", "Text"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -852,10 +778,7 @@
|
|||
"fileTypes": [],
|
||||
"file_path": "",
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"input_types": ["Message", "Text"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -875,10 +798,7 @@
|
|||
"fileTypes": [],
|
||||
"file_path": "",
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"input_types": ["Message", "Text"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -898,10 +818,7 @@
|
|||
"fileTypes": [],
|
||||
"file_path": "",
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"input_types": ["Message", "Text"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -956,9 +873,7 @@
|
|||
"display_name": "Tool Placeholder",
|
||||
"dynamic": false,
|
||||
"info": "A placeholder input for tool mode.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "tool_placeholder",
|
||||
|
|
@ -979,10 +894,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 685,
|
||||
"id": "Prompt-t7tN0",
|
||||
"id": "Prompt-QIyYT",
|
||||
"measured": {
|
||||
"height": 685,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 2219.5265974825707,
|
||||
|
|
@ -1000,11 +915,9 @@
|
|||
"data": {
|
||||
"description": "Display a chat message in the Playground.",
|
||||
"display_name": "Chat Output",
|
||||
"id": "ChatOutput-y7MoT",
|
||||
"id": "ChatOutput-Jj8M6",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -1052,9 +965,7 @@
|
|||
"display_name": "Background Color",
|
||||
"dynamic": false,
|
||||
"info": "The background color of the icon.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "background_color",
|
||||
|
|
@ -1074,9 +985,7 @@
|
|||
"display_name": "Icon",
|
||||
"dynamic": false,
|
||||
"info": "The icon of the message.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "chat_icon",
|
||||
|
|
@ -1114,9 +1023,7 @@
|
|||
"display_name": "Data Template",
|
||||
"dynamic": false,
|
||||
"info": "Template to convert Data to Text. If left empty, it will be dynamically set to the Data's text key.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "data_template",
|
||||
|
|
@ -1136,9 +1043,7 @@
|
|||
"display_name": "Text",
|
||||
"dynamic": false,
|
||||
"info": "Message to be passed as output.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "input_value",
|
||||
|
|
@ -1159,10 +1064,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Type of sender.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User"
|
||||
],
|
||||
"options": ["Machine", "User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -1178,9 +1080,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Name of the sender.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -1200,9 +1100,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -1238,9 +1136,7 @@
|
|||
"display_name": "Text Color",
|
||||
"dynamic": false,
|
||||
"info": "The text color of the name",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "text_color",
|
||||
|
|
@ -1261,10 +1157,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 232,
|
||||
"id": "ChatOutput-y7MoT",
|
||||
"id": "ChatOutput-Jj8M6",
|
||||
"measured": {
|
||||
"height": 232,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 2947.267779013826,
|
||||
|
|
@ -1280,7 +1176,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-T4gpA",
|
||||
"id": "note-M2lYQ",
|
||||
"node": {
|
||||
"description": "# Fetch Components code \n\nUsing the URL component we are extracting from Github, the code from a few classes to provide as example to the LLM. \n\nThis ensures we are always up to date with recent information from the codebase.",
|
||||
"display_name": "",
|
||||
|
|
@ -1291,10 +1187,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 324,
|
||||
"id": "note-T4gpA",
|
||||
"id": "note-M2lYQ",
|
||||
"measured": {
|
||||
"height": 324,
|
||||
"width": 328
|
||||
"width": 325
|
||||
},
|
||||
"position": {
|
||||
"x": 1430.2014058924922,
|
||||
|
|
@ -1310,7 +1206,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-SQ4yw",
|
||||
"id": "note-nxR1T",
|
||||
"node": {
|
||||
"description": "# 🛠️ Custom Component Generator 🚀\n\nHi! I'm here to help you create custom components for Langflow. Think of me as your technical partner who can help turn your ideas into working components! \n\n## 🎯 How to Work With Me\n\n### 1. 💭 Tell Me What You Want to Build\nSimply describe what you want your component to do in plain English. For example:\n- \"I need a component that sends Slack messages\"\n- \"I want to create a tool that can process CSV files\"\n- \"I need something that can translate text\"\n\n### 2. 📚 Share Any Relevant Information\nIf you're working with a specific:\n- 🔑 API or service (just share the documentation link or main endpoints)\n- 📄 File format\n- 🔄 Data structure\n- 🔧 Existing component you want to modify\n\n### 3. 🎨 Let Me Help Design It\nI'll help by:\n- 📊 Breaking down complex requirements into manageable pieces\n- 💡 Suggesting the best way to structure inputs and outputs\n- ⚙️ Creating the component code\n- 📝 Explaining how to use it\n\n### 4. 🔄 Iterative Refinement\nWe can then:\n- ✅ Test and refine the component\n- ⭐ Add features\n- 🔧 Modify behavior\n- 🛡️ Improve error handling\n- 📖 Add documentation\n\n## 🚀 What I Can Help With\n\nI can help create components that:\n- 📊 Process different file types (CSV, JSON, Excel, etc.)\n- 🔌 Integrate with external APIs\n- 🔄 Transform data\n- 🔀 Route messages\n- 🌐 Handle web requests\n- 🎯 Parse structured data\n- ✨ And much more!\n\n## 💡 Tips for Best Results\n\n1. **Be Specific** 🎯: The more details you provide about what you want to accomplish, the better I can help.\n\n2. **Share Examples** 📋: If you have example data or specific use cases, share them.\n\n3. **Ask Questions** ❓: Don't hesitate to ask for clarification or modifications.\n\nJust start by telling me what kind of component you'd like to create, and I'll guide you through the process! \n\nReady to build something awesome? 🚀 Let's get started!",
|
||||
"display_name": "",
|
||||
|
|
@ -1321,10 +1217,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 573,
|
||||
"id": "note-SQ4yw",
|
||||
"id": "note-nxR1T",
|
||||
"measured": {
|
||||
"height": 573,
|
||||
"width": 328
|
||||
"width": 324
|
||||
},
|
||||
"position": {
|
||||
"x": 807.6293964045135,
|
||||
|
|
@ -1335,22 +1231,19 @@
|
|||
"y": 605.6504562080672
|
||||
},
|
||||
"resizing": false,
|
||||
"selected": false,
|
||||
"selected": true,
|
||||
"style": {
|
||||
"height": 573,
|
||||
"width": 564
|
||||
"width": 324
|
||||
},
|
||||
"type": "noteNode",
|
||||
"width": 564
|
||||
"width": 324
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "URL-vp2La",
|
||||
"id": "URL-pFAuR",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data",
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Data", "Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -1358,10 +1251,7 @@
|
|||
"display_name": "URL",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"urls",
|
||||
"format"
|
||||
],
|
||||
"field_order": ["urls", "format"],
|
||||
"frozen": false,
|
||||
"icon": "layout-template",
|
||||
"legacy": false,
|
||||
|
|
@ -1438,10 +1328,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Output Format. Use 'Text' to extract the text from the HTML or 'Raw HTML' for the raw HTML content.",
|
||||
"name": "format",
|
||||
"options": [
|
||||
"Text",
|
||||
"Raw HTML"
|
||||
],
|
||||
"options": ["Text", "Raw HTML"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -1457,9 +1344,7 @@
|
|||
"display_name": "URLs",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": true,
|
||||
"load_from_db": false,
|
||||
"name": "urls",
|
||||
|
|
@ -1482,10 +1367,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 365,
|
||||
"id": "URL-vp2La",
|
||||
"id": "URL-pFAuR",
|
||||
"measured": {
|
||||
"height": 365,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1436.3617127766433,
|
||||
|
|
@ -1501,12 +1386,9 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "URL-l7pdF",
|
||||
"id": "URL-wNOPd",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data",
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Data", "Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -1514,10 +1396,7 @@
|
|||
"display_name": "URL",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"urls",
|
||||
"format"
|
||||
],
|
||||
"field_order": ["urls", "format"],
|
||||
"frozen": false,
|
||||
"icon": "layout-template",
|
||||
"legacy": false,
|
||||
|
|
@ -1594,10 +1473,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Output Format. Use 'Text' to extract the text from the HTML or 'Raw HTML' for the raw HTML content.",
|
||||
"name": "format",
|
||||
"options": [
|
||||
"Text",
|
||||
"Raw HTML"
|
||||
],
|
||||
"options": ["Text", "Raw HTML"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -1613,9 +1489,7 @@
|
|||
"display_name": "URLs",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": true,
|
||||
"load_from_db": false,
|
||||
"name": "urls",
|
||||
|
|
@ -1644,10 +1518,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 661,
|
||||
"id": "URL-l7pdF",
|
||||
"id": "URL-wNOPd",
|
||||
"measured": {
|
||||
"height": 661,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1831.5895760156684,
|
||||
|
|
@ -1663,12 +1537,9 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "URL-ak8Jx",
|
||||
"id": "URL-KARv3",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data",
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Data", "Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -1676,10 +1547,7 @@
|
|||
"display_name": "URL",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"urls",
|
||||
"format"
|
||||
],
|
||||
"field_order": ["urls", "format"],
|
||||
"frozen": false,
|
||||
"icon": "layout-template",
|
||||
"legacy": false,
|
||||
|
|
@ -1756,10 +1624,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Output Format. Use 'Text' to extract the text from the HTML or 'Raw HTML' for the raw HTML content.",
|
||||
"name": "format",
|
||||
"options": [
|
||||
"Text",
|
||||
"Raw HTML"
|
||||
],
|
||||
"options": ["Text", "Raw HTML"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -1775,9 +1640,7 @@
|
|||
"display_name": "URLs",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": true,
|
||||
"load_from_db": false,
|
||||
"name": "urls",
|
||||
|
|
@ -1800,10 +1663,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 365,
|
||||
"id": "URL-ak8Jx",
|
||||
"id": "URL-KARv3",
|
||||
"measured": {
|
||||
"height": 365,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1436.982480021523,
|
||||
|
|
@ -1819,12 +1682,9 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "AnthropicModel-L37Qm",
|
||||
"id": "AnthropicModel-RQQCm",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"LanguageModel",
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["LanguageModel", "Message"],
|
||||
"beta": false,
|
||||
"category": "models",
|
||||
"conditional_paths": [],
|
||||
|
|
@ -1873,9 +1733,7 @@
|
|||
"display_name": "Language Model",
|
||||
"method": "build_model",
|
||||
"name": "model_output",
|
||||
"required_inputs": [
|
||||
"api_key"
|
||||
],
|
||||
"required_inputs": ["api_key"],
|
||||
"selected": "LanguageModel",
|
||||
"tool_mode": true,
|
||||
"types": [
|
||||
|
|
@ -1894,10 +1752,8 @@
|
|||
"display_name": "Anthropic API Key",
|
||||
"dynamic": false,
|
||||
"info": "Your Anthropic API key.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"load_from_db": true,
|
||||
"input_types": ["Message"],
|
||||
"load_from_db": false,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
"placeholder": "",
|
||||
|
|
@ -1914,9 +1770,7 @@
|
|||
"display_name": "Anthropic API URL",
|
||||
"dynamic": false,
|
||||
"info": "Endpoint of the Anthropic API. Defaults to 'https://api.anthropic.com' if not specified.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -1956,9 +1810,7 @@
|
|||
"display_name": "Input",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -2027,9 +1879,7 @@
|
|||
"display_name": "Prefill",
|
||||
"dynamic": false,
|
||||
"info": "Prefill text to guide the model's response.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -2068,9 +1918,7 @@
|
|||
"display_name": "System Message",
|
||||
"dynamic": false,
|
||||
"info": "System message to pass to the model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -2084,7 +1932,7 @@
|
|||
"trace_as_input": true,
|
||||
"trace_as_metadata": true,
|
||||
"type": "str",
|
||||
"value": ""
|
||||
"value": "admin@admin.com"
|
||||
},
|
||||
"temperature": {
|
||||
"_input_type": "SliderInput",
|
||||
|
|
@ -2140,10 +1988,10 @@
|
|||
"type": "AnthropicModel"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "AnthropicModel-L37Qm",
|
||||
"id": "AnthropicModel-RQQCm",
|
||||
"measured": {
|
||||
"height": 896,
|
||||
"width": 360
|
||||
"height": 797,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 2585.5577736139826,
|
||||
|
|
@ -2154,9 +2002,9 @@
|
|||
}
|
||||
],
|
||||
"viewport": {
|
||||
"x": -637.4755295542625,
|
||||
"y": -182.36005379554103,
|
||||
"zoom": 0.5837207970729746
|
||||
"x": -366.41363591649906,
|
||||
"y": 264.64346206947675,
|
||||
"zoom": 0.5351858410044688
|
||||
}
|
||||
},
|
||||
"description": "Generates well-structured code for custom components following Langflow's specifications.",
|
||||
|
|
@ -2167,8 +2015,5 @@
|
|||
"is_component": false,
|
||||
"last_tested_version": "1.1.0",
|
||||
"name": "Custom Component Generator",
|
||||
"tags": [
|
||||
"coding",
|
||||
"web-scraping"
|
||||
]
|
||||
}
|
||||
"tags": ["coding", "web-scraping"]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,128 +6,115 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "File",
|
||||
"id": "File-wUadf",
|
||||
"id": "File-GwJQZ",
|
||||
"name": "data",
|
||||
"output_types": [
|
||||
"Data"
|
||||
]
|
||||
"output_types": ["Data"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "data",
|
||||
"id": "ParseData-IJwYj",
|
||||
"inputTypes": [
|
||||
"Data"
|
||||
],
|
||||
"id": "ParseData-BbvKb",
|
||||
"inputTypes": ["Data"],
|
||||
"type": "other"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-File-wUadf{œdataTypeœ:œFileœ,œidœ:œFile-wUadfœ,œnameœ:œdataœ,œoutput_typesœ:[œDataœ]}-ParseData-IJwYj{œfieldNameœ:œdataœ,œidœ:œParseData-IJwYjœ,œinputTypesœ:[œDataœ],œtypeœ:œotherœ}",
|
||||
"source": "File-wUadf",
|
||||
"sourceHandle": "{œdataTypeœ: œFileœ, œidœ: œFile-wUadfœ, œnameœ: œdataœ, œoutput_typesœ: [œDataœ]}",
|
||||
"target": "ParseData-IJwYj",
|
||||
"targetHandle": "{œfieldNameœ: œdataœ, œidœ: œParseData-IJwYjœ, œinputTypesœ: [œDataœ], œtypeœ: œotherœ}"
|
||||
"id": "reactflow__edge-File-GwJQZ{œdataTypeœ:œFileœ,œidœ:œFile-GwJQZœ,œnameœ:œdataœ,œoutput_typesœ:[œDataœ]}-ParseData-BbvKb{œfieldNameœ:œdataœ,œidœ:œParseData-BbvKbœ,œinputTypesœ:[œDataœ],œtypeœ:œotherœ}",
|
||||
"selected": false,
|
||||
"source": "File-GwJQZ",
|
||||
"sourceHandle": "{œdataTypeœ: œFileœ, œidœ: œFile-GwJQZœ, œnameœ: œdataœ, œoutput_typesœ: [œDataœ]}",
|
||||
"target": "ParseData-BbvKb",
|
||||
"targetHandle": "{œfieldNameœ: œdataœ, œidœ: œParseData-BbvKbœ, œinputTypesœ: [œDataœ], œtypeœ: œotherœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "ParseData",
|
||||
"id": "ParseData-IJwYj",
|
||||
"id": "ParseData-BbvKb",
|
||||
"name": "text",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "Document",
|
||||
"id": "Prompt-5ubri",
|
||||
"inputTypes": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"id": "Prompt-yvZHT",
|
||||
"inputTypes": ["Message", "Text"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-ParseData-IJwYj{œdataTypeœ:œParseDataœ,œidœ:œParseData-IJwYjœ,œnameœ:œtextœ,œoutput_typesœ:[œMessageœ]}-Prompt-5ubri{œfieldNameœ:œDocumentœ,œidœ:œPrompt-5ubriœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"source": "ParseData-IJwYj",
|
||||
"sourceHandle": "{œdataTypeœ: œParseDataœ, œidœ: œParseData-IJwYjœ, œnameœ: œtextœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-5ubri",
|
||||
"targetHandle": "{œfieldNameœ: œDocumentœ, œidœ: œPrompt-5ubriœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-ParseData-BbvKb{œdataTypeœ:œParseDataœ,œidœ:œParseData-BbvKbœ,œnameœ:œtextœ,œoutput_typesœ:[œMessageœ]}-Prompt-yvZHT{œfieldNameœ:œDocumentœ,œidœ:œPrompt-yvZHTœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "ParseData-BbvKb",
|
||||
"sourceHandle": "{œdataTypeœ: œParseDataœ, œidœ: œParseData-BbvKbœ, œnameœ: œtextœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-yvZHT",
|
||||
"targetHandle": "{œfieldNameœ: œDocumentœ, œidœ: œPrompt-yvZHTœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "ChatInput",
|
||||
"id": "ChatInput-VApZJ",
|
||||
"id": "ChatInput-li477",
|
||||
"name": "message",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "OpenAIModel-toIc8",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "OpenAIModel-atkmo",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__ChatInput-VApZJ{œdataTypeœ:œChatInputœ,œidœ:œChatInput-VApZJœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-toIc8{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-toIc8œ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "ChatInput-VApZJ",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-VApZJœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-toIc8",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-toIc8œ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-ChatInput-li477{œdataTypeœ:œChatInputœ,œidœ:œChatInput-li477œ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-atkmo{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-atkmoœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "ChatInput-li477",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-li477œ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-atkmo",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-atkmoœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-5ubri",
|
||||
"id": "Prompt-yvZHT",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "system_message",
|
||||
"id": "OpenAIModel-toIc8",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "OpenAIModel-atkmo",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__Prompt-5ubri{œdataTypeœ:œPromptœ,œidœ:œPrompt-5ubriœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-toIc8{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-toIc8œ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-5ubri",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-5ubriœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-toIc8",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-toIc8œ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Prompt-yvZHT{œdataTypeœ:œPromptœ,œidœ:œPrompt-yvZHTœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-atkmo{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-atkmoœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "Prompt-yvZHT",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-yvZHTœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-atkmo",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-atkmoœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "OpenAIModel",
|
||||
"id": "OpenAIModel-toIc8",
|
||||
"id": "OpenAIModel-atkmo",
|
||||
"name": "text_output",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "ChatOutput-8lufz",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "ChatOutput-8pgwS",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__OpenAIModel-toIc8{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-toIc8œ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-8lufz{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-8lufzœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "OpenAIModel-toIc8",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-toIc8œ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-8lufz",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-8lufzœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-OpenAIModel-atkmo{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-atkmoœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-8pgwS{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-8pgwSœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "OpenAIModel-atkmo",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-atkmoœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-8pgwS",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-8pgwSœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
|
|
@ -135,11 +122,9 @@
|
|||
"data": {
|
||||
"description": "Get chat inputs from the Playground.",
|
||||
"display_name": "Chat Input",
|
||||
"id": "ChatInput-VApZJ",
|
||||
"id": "ChatInput-li477",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -185,9 +170,7 @@
|
|||
"display_name": "Background Color",
|
||||
"dynamic": false,
|
||||
"info": "The background color of the icon.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "background_color",
|
||||
|
|
@ -206,9 +189,7 @@
|
|||
"display_name": "Icon",
|
||||
"dynamic": false,
|
||||
"info": "The icon of the message.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "chat_icon",
|
||||
|
|
@ -305,10 +286,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Type of sender.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User"
|
||||
],
|
||||
"options": ["Machine", "User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -322,9 +300,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Name of the sender.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -342,9 +318,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -379,9 +353,7 @@
|
|||
"display_name": "Text Color",
|
||||
"dynamic": false,
|
||||
"info": "The text color of the name",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "text_color",
|
||||
|
|
@ -400,10 +372,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 234,
|
||||
"id": "ChatInput-VApZJ",
|
||||
"id": "ChatInput-li477",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 516.7529480335185,
|
||||
|
|
@ -421,11 +393,9 @@
|
|||
"data": {
|
||||
"description": "Display a chat message in the Playground.",
|
||||
"display_name": "Chat Output",
|
||||
"id": "ChatOutput-8lufz",
|
||||
"id": "ChatOutput-8pgwS",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -474,9 +444,7 @@
|
|||
"display_name": "Background Color",
|
||||
"dynamic": false,
|
||||
"info": "The background color of the icon.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "background_color",
|
||||
|
|
@ -496,9 +464,7 @@
|
|||
"display_name": "Icon",
|
||||
"dynamic": false,
|
||||
"info": "The icon of the message.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "chat_icon",
|
||||
|
|
@ -536,9 +502,7 @@
|
|||
"display_name": "Data Template",
|
||||
"dynamic": false,
|
||||
"info": "Template to convert Data to Text. If left empty, it will be dynamically set to the Data's text key.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "data_template",
|
||||
|
|
@ -558,9 +522,7 @@
|
|||
"display_name": "Text",
|
||||
"dynamic": false,
|
||||
"info": "Message to be passed as output.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "input_value",
|
||||
|
|
@ -581,10 +543,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Type of sender.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User"
|
||||
],
|
||||
"options": ["Machine", "User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -600,9 +559,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Name of the sender.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -622,9 +579,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -660,9 +615,7 @@
|
|||
"display_name": "Text Color",
|
||||
"dynamic": false,
|
||||
"info": "The text color of the name",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "text_color",
|
||||
|
|
@ -683,10 +636,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 234,
|
||||
"id": "ChatOutput-8lufz",
|
||||
"id": "ChatOutput-8pgwS",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1631.3766926569258,
|
||||
|
|
@ -704,11 +657,9 @@
|
|||
"data": {
|
||||
"description": "Convert Data into plain text following a specified template.",
|
||||
"display_name": "Parse Data",
|
||||
"id": "ParseData-IJwYj",
|
||||
"id": "ParseData-BbvKb",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -716,11 +667,7 @@
|
|||
"display_name": "Parse Data",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"data",
|
||||
"template",
|
||||
"sep"
|
||||
],
|
||||
"field_order": ["data", "template", "sep"],
|
||||
"frozen": false,
|
||||
"icon": "message-square",
|
||||
"legacy": false,
|
||||
|
|
@ -781,9 +728,7 @@
|
|||
"display_name": "Data",
|
||||
"dynamic": false,
|
||||
"info": "The data to convert to text.",
|
||||
"input_types": [
|
||||
"Data"
|
||||
],
|
||||
"input_types": ["Data"],
|
||||
"list": true,
|
||||
"name": "data",
|
||||
"placeholder": "",
|
||||
|
|
@ -816,9 +761,7 @@
|
|||
"display_name": "Template",
|
||||
"dynamic": false,
|
||||
"info": "The template to use for formatting the data. It can contain the keys {text}, {data} or any other key in the Data.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -838,10 +781,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 302,
|
||||
"id": "ParseData-IJwYj",
|
||||
"id": "ParseData-BbvKb",
|
||||
"measured": {
|
||||
"height": 302,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 514.8054600415829,
|
||||
|
|
@ -857,7 +800,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-bAopU",
|
||||
"id": "note-e77cr",
|
||||
"node": {
|
||||
"description": "## Get Your OpenAI API Key\n\n**Steps**:\n\n1. **Visit** [OpenAI's API Key Page](https://platform.openai.com/api-keys).\n\n2. **Log In/Sign Up**:\n - Log in or create a new OpenAI account.\n\n3. **Generate API Key**:\n - Click \"Create New Secret Key\" to obtain your key.\n\n4. **Store Your Key Securely**:\n - Note it down as it will only display once.\n\n5. **Enter API Key**:\n - Input your key in the OpenAI API Key field within the component setup.\n\nKeep your key safe and manage it responsibly!",
|
||||
"display_name": "",
|
||||
|
|
@ -870,10 +813,10 @@
|
|||
},
|
||||
"dragging": true,
|
||||
"height": 325,
|
||||
"id": "note-bAopU",
|
||||
"id": "note-e77cr",
|
||||
"measured": {
|
||||
"height": 325,
|
||||
"width": 328
|
||||
"height": 324,
|
||||
"width": 325
|
||||
},
|
||||
"position": {
|
||||
"x": 1253.2038187140245,
|
||||
|
|
@ -889,7 +832,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-XuFcb",
|
||||
"id": "note-0kA8I",
|
||||
"node": {
|
||||
"description": "# Document Q&A\n\n**Purpose:**\nThis flow leverages a language model to answer questions based on content from a loaded document. It's ideal for obtaining quick insights from PDFs or other text files by asking direct questions.\n\n**Components**:\n1. **File Component**: Loads and processes your document in supported formats.\n2. **Parse Data**: Converts the loaded document into text using a specified template for consistent processing.\n3. **Prompt Component**: Forms a structured query by combining the parsed document content with user questions.\n4. **OpenAI Model**: Engages OpenAI's language model to generate responses to queries based on the document context.\n5. **Chat Input/Output**: Facilitates user queries and displays AI-generated answers seamlessly.\n\n**Steps to Use**:\n1. **Upload Document**: Use the \"File\" component to upload a document or text file you want to query.\n2. **Enter Question**: Through the \"Chat Input\" field, type your question related to the document content.\n3. **Run the Flow**: Activate the flow to process the input and generate an answer using the OpenAI model.\n4. **View Response**: Read the generated answer in the \"Chat Output\" field for immediate insights.\n\n**Benefits**:\n- Simplifies the process of extracting information from documents.\n- Provides a user-friendly interface for interactive document exploration using AI.\n",
|
||||
"display_name": "",
|
||||
|
|
@ -900,10 +843,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 452,
|
||||
"id": "note-XuFcb",
|
||||
"id": "note-0kA8I",
|
||||
"measured": {
|
||||
"height": 452,
|
||||
"width": 328
|
||||
"height": 408,
|
||||
"width": 325
|
||||
},
|
||||
"position": {
|
||||
"x": -338.7070086205371,
|
||||
|
|
@ -917,18 +860,16 @@
|
|||
"selected": false,
|
||||
"style": {
|
||||
"height": 452,
|
||||
"width": 469
|
||||
"width": 324
|
||||
},
|
||||
"type": "noteNode",
|
||||
"width": 469
|
||||
"width": 324
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "File-wUadf",
|
||||
"id": "File-GwJQZ",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data"
|
||||
],
|
||||
"base_classes": ["Data"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -1022,10 +963,7 @@
|
|||
"display_name": "Server File Path",
|
||||
"dynamic": false,
|
||||
"info": "Data object with a 'file_path' property pointing to server file or a Message object with a path to the file. Supercedes 'Path' but supports same file types.",
|
||||
"input_types": [
|
||||
"Data",
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Data", "Message"],
|
||||
"list": true,
|
||||
"name": "file_path",
|
||||
"placeholder": "",
|
||||
|
|
@ -1149,10 +1087,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 232,
|
||||
"id": "File-wUadf",
|
||||
"id": "File-GwJQZ",
|
||||
"measured": {
|
||||
"height": 232,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 150.6029945346864,
|
||||
|
|
@ -1162,7 +1100,7 @@
|
|||
"x": 155.39382083637838,
|
||||
"y": -82.32805525710685
|
||||
},
|
||||
"selected": true,
|
||||
"selected": false,
|
||||
"type": "genericNode",
|
||||
"width": 320
|
||||
},
|
||||
|
|
@ -1170,26 +1108,20 @@
|
|||
"data": {
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"id": "Prompt-5ubri",
|
||||
"id": "Prompt-yvZHT",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {
|
||||
"template": [
|
||||
"Document"
|
||||
]
|
||||
"template": ["Document"]
|
||||
},
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"error": null,
|
||||
"field_order": [
|
||||
"template"
|
||||
],
|
||||
"field_order": ["template"],
|
||||
"frozen": false,
|
||||
"full_path": null,
|
||||
"icon": "prompts",
|
||||
|
|
@ -1226,10 +1158,7 @@
|
|||
"fileTypes": [],
|
||||
"file_path": "",
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"input_types": ["Message", "Text"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -1282,9 +1211,7 @@
|
|||
"display_name": "Tool Placeholder",
|
||||
"dynamic": false,
|
||||
"info": "A placeholder input for tool mode.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "tool_placeholder",
|
||||
|
|
@ -1305,10 +1232,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 347,
|
||||
"id": "Prompt-5ubri",
|
||||
"id": "Prompt-yvZHT",
|
||||
"measured": {
|
||||
"height": 347,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 882.4192413332464,
|
||||
|
|
@ -1324,12 +1251,9 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "OpenAIModel-toIc8",
|
||||
"id": "OpenAIModel-atkmo",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"LanguageModel",
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["LanguageModel", "Message"],
|
||||
"beta": false,
|
||||
"category": "models",
|
||||
"conditional_paths": [],
|
||||
|
|
@ -1379,9 +1303,7 @@
|
|||
"display_name": "Language Model",
|
||||
"method": "build_model",
|
||||
"name": "model_output",
|
||||
"required_inputs": [
|
||||
"api_key"
|
||||
],
|
||||
"required_inputs": ["api_key"],
|
||||
"selected": "LanguageModel",
|
||||
"tool_mode": true,
|
||||
"types": [
|
||||
|
|
@ -1400,9 +1322,7 @@
|
|||
"display_name": "OpenAI API Key",
|
||||
"dynamic": false,
|
||||
"info": "The OpenAI API Key to use for the OpenAI model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"load_from_db": true,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
|
|
@ -1411,7 +1331,7 @@
|
|||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "str",
|
||||
"value": "OPENAI_API_KEY"
|
||||
"value": ""
|
||||
},
|
||||
"code": {
|
||||
"advanced": true,
|
||||
|
|
@ -1437,9 +1357,7 @@
|
|||
"display_name": "Input",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -1603,9 +1521,7 @@
|
|||
"display_name": "System Message",
|
||||
"dynamic": false,
|
||||
"info": "System message to pass to the model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -1656,10 +1572,10 @@
|
|||
"type": "OpenAIModel"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "OpenAIModel-toIc8",
|
||||
"id": "OpenAIModel-atkmo",
|
||||
"measured": {
|
||||
"height": 734,
|
||||
"width": 360
|
||||
"height": 653,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1257.1422612381514,
|
||||
|
|
@ -1683,9 +1599,5 @@
|
|||
"is_component": false,
|
||||
"last_tested_version": "1.0.19.post2",
|
||||
"name": "Document Q&A",
|
||||
"tags": [
|
||||
"rag",
|
||||
"q-a",
|
||||
"openai"
|
||||
]
|
||||
}
|
||||
"tags": ["rag", "q-a", "openai"]
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -7,26 +7,23 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "StructuredOutputComponent",
|
||||
"id": "StructuredOutputComponent-a20pA",
|
||||
"id": "StructuredOutputComponent-XYoUc",
|
||||
"name": "structured_output",
|
||||
"output_types": [
|
||||
"Data"
|
||||
]
|
||||
"output_types": ["Data"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "data",
|
||||
"id": "ParseData-HAm0G",
|
||||
"inputTypes": [
|
||||
"Data"
|
||||
],
|
||||
"id": "ParseData-HzweJ",
|
||||
"inputTypes": ["Data"],
|
||||
"type": "other"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-StructuredOutputComponent-a20pA{œdataTypeœ:œStructuredOutputComponentœ,œidœ:œStructuredOutputComponent-a20pAœ,œnameœ:œstructured_outputœ,œoutput_typesœ:[œDataœ]}-ParseData-HAm0G{œfieldNameœ:œdataœ,œidœ:œParseData-HAm0Gœ,œinputTypesœ:[œDataœ],œtypeœ:œotherœ}",
|
||||
"source": "StructuredOutputComponent-a20pA",
|
||||
"sourceHandle": "{œdataTypeœ: œStructuredOutputComponentœ, œidœ: œStructuredOutputComponent-a20pAœ, œnameœ: œstructured_outputœ, œoutput_typesœ: [œDataœ]}",
|
||||
"target": "ParseData-HAm0G",
|
||||
"targetHandle": "{œfieldNameœ: œdataœ, œidœ: œParseData-HAm0Gœ, œinputTypesœ: [œDataœ], œtypeœ: œotherœ}"
|
||||
"id": "reactflow__edge-StructuredOutputComponent-XYoUc{œdataTypeœ:œStructuredOutputComponentœ,œidœ:œStructuredOutputComponent-XYoUcœ,œnameœ:œstructured_outputœ,œoutput_typesœ:[œDataœ]}-ParseData-HzweJ{œfieldNameœ:œdataœ,œidœ:œParseData-HzweJœ,œinputTypesœ:[œDataœ],œtypeœ:œotherœ}",
|
||||
"selected": false,
|
||||
"source": "StructuredOutputComponent-XYoUc",
|
||||
"sourceHandle": "{œdataTypeœ: œStructuredOutputComponentœ, œidœ: œStructuredOutputComponent-XYoUcœ, œnameœ: œstructured_outputœ, œoutput_typesœ: [œDataœ]}",
|
||||
"target": "ParseData-HzweJ",
|
||||
"targetHandle": "{œfieldNameœ: œdataœ, œidœ: œParseData-HzweJœ, œinputTypesœ: [œDataœ], œtypeœ: œotherœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -34,126 +31,115 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "ParseData",
|
||||
"id": "ParseData-HAm0G",
|
||||
"id": "ParseData-HzweJ",
|
||||
"name": "text",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "ChatOutput-wjprm",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "ChatOutput-xQxLm",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-ParseData-HAm0G{œdataTypeœ:œParseDataœ,œidœ:œParseData-HAm0Gœ,œnameœ:œtextœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-wjprm{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-wjprmœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "ParseData-HAm0G",
|
||||
"sourceHandle": "{œdataTypeœ: œParseDataœ, œidœ: œParseData-HAm0Gœ, œnameœ: œtextœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-wjprm",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-wjprmœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-ParseData-HzweJ{œdataTypeœ:œParseDataœ,œidœ:œParseData-HzweJœ,œnameœ:œtextœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-xQxLm{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-xQxLmœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "ParseData-HzweJ",
|
||||
"sourceHandle": "{œdataTypeœ: œParseDataœ, œidœ: œParseData-HzweJœ, œnameœ: œtextœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-xQxLm",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-xQxLmœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "ChatInput",
|
||||
"id": "ChatInput-ufYDr",
|
||||
"id": "ChatInput-rAWlE",
|
||||
"name": "message",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "OpenAIModel-i45Zr",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "OpenAIModel-cqeNw",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__ChatInput-ufYDr{œdataTypeœ:œChatInputœ,œidœ:œChatInput-ufYDrœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-i45Zr{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-i45Zrœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "ChatInput-ufYDr",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-ufYDrœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-i45Zr",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-i45Zrœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-ChatInput-rAWlE{œdataTypeœ:œChatInputœ,œidœ:œChatInput-rAWlEœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-cqeNw{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-cqeNwœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "ChatInput-rAWlE",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-rAWlEœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-cqeNw",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-cqeNwœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-aZBZD",
|
||||
"id": "Prompt-AzK6t",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "system_message",
|
||||
"id": "OpenAIModel-i45Zr",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "OpenAIModel-cqeNw",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__Prompt-aZBZD{œdataTypeœ:œPromptœ,œidœ:œPrompt-aZBZDœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-i45Zr{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-i45Zrœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-aZBZD",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-aZBZDœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-i45Zr",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-i45Zrœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Prompt-AzK6t{œdataTypeœ:œPromptœ,œidœ:œPrompt-AzK6tœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-cqeNw{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-cqeNwœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "Prompt-AzK6t",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-AzK6tœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-cqeNw",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-cqeNwœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "OpenAIModel",
|
||||
"id": "OpenAIModel-i45Zr",
|
||||
"id": "OpenAIModel-cqeNw",
|
||||
"name": "text_output",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "StructuredOutputComponent-a20pA",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "StructuredOutputComponent-XYoUc",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__OpenAIModel-i45Zr{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-i45Zrœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-StructuredOutputComponent-a20pA{œfieldNameœ:œinput_valueœ,œidœ:œStructuredOutputComponent-a20pAœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "OpenAIModel-i45Zr",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-i45Zrœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "StructuredOutputComponent-a20pA",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œStructuredOutputComponent-a20pAœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-OpenAIModel-cqeNw{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-cqeNwœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-StructuredOutputComponent-XYoUc{œfieldNameœ:œinput_valueœ,œidœ:œStructuredOutputComponent-XYoUcœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "OpenAIModel-cqeNw",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-cqeNwœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "StructuredOutputComponent-XYoUc",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œStructuredOutputComponent-XYoUcœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "OpenAIModel",
|
||||
"id": "OpenAIModel-i45Zr",
|
||||
"id": "OpenAIModel-cqeNw",
|
||||
"name": "model_output",
|
||||
"output_types": [
|
||||
"LanguageModel"
|
||||
]
|
||||
"output_types": ["LanguageModel"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "llm",
|
||||
"id": "StructuredOutputComponent-a20pA",
|
||||
"inputTypes": [
|
||||
"LanguageModel"
|
||||
],
|
||||
"id": "StructuredOutputComponent-XYoUc",
|
||||
"inputTypes": ["LanguageModel"],
|
||||
"type": "other"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__OpenAIModel-i45Zr{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-i45Zrœ,œnameœ:œmodel_outputœ,œoutput_typesœ:[œLanguageModelœ]}-StructuredOutputComponent-a20pA{œfieldNameœ:œllmœ,œidœ:œStructuredOutputComponent-a20pAœ,œinputTypesœ:[œLanguageModelœ],œtypeœ:œotherœ}",
|
||||
"source": "OpenAIModel-i45Zr",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-i45Zrœ, œnameœ: œmodel_outputœ, œoutput_typesœ: [œLanguageModelœ]}",
|
||||
"target": "StructuredOutputComponent-a20pA",
|
||||
"targetHandle": "{œfieldNameœ: œllmœ, œidœ: œStructuredOutputComponent-a20pAœ, œinputTypesœ: [œLanguageModelœ], œtypeœ: œotherœ}"
|
||||
"id": "reactflow__edge-OpenAIModel-cqeNw{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-cqeNwœ,œnameœ:œmodel_outputœ,œoutput_typesœ:[œLanguageModelœ]}-StructuredOutputComponent-XYoUc{œfieldNameœ:œllmœ,œidœ:œStructuredOutputComponent-XYoUcœ,œinputTypesœ:[œLanguageModelœ],œtypeœ:œotherœ}",
|
||||
"selected": false,
|
||||
"source": "OpenAIModel-cqeNw",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-cqeNwœ, œnameœ: œmodel_outputœ, œoutput_typesœ: [œLanguageModelœ]}",
|
||||
"target": "StructuredOutputComponent-XYoUc",
|
||||
"targetHandle": "{œfieldNameœ: œllmœ, œidœ: œStructuredOutputComponent-XYoUcœ, œinputTypesœ: [œLanguageModelœ], œtypeœ: œotherœ}"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
|
|
@ -161,11 +147,9 @@
|
|||
"data": {
|
||||
"description": "Get chat inputs from the Playground.",
|
||||
"display_name": "Chat Input",
|
||||
"id": "ChatInput-ufYDr",
|
||||
"id": "ChatInput-rAWlE",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -214,9 +198,7 @@
|
|||
"display_name": "Background Color",
|
||||
"dynamic": false,
|
||||
"info": "The background color of the icon.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "background_color",
|
||||
|
|
@ -236,9 +218,7 @@
|
|||
"display_name": "Icon",
|
||||
"dynamic": false,
|
||||
"info": "The icon of the message.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "chat_icon",
|
||||
|
|
@ -341,10 +321,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Type of sender.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User"
|
||||
],
|
||||
"options": ["Machine", "User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -360,9 +337,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Name of the sender.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -382,9 +357,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -420,9 +393,7 @@
|
|||
"display_name": "Text Color",
|
||||
"dynamic": false,
|
||||
"info": "The text color of the name",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "text_color",
|
||||
|
|
@ -443,10 +414,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 234,
|
||||
"id": "ChatInput-ufYDr",
|
||||
"id": "ChatInput-rAWlE",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1258.8272095125978,
|
||||
|
|
@ -464,11 +435,9 @@
|
|||
"data": {
|
||||
"description": "Display a chat message in the Playground.",
|
||||
"display_name": "Chat Output",
|
||||
"id": "ChatOutput-wjprm",
|
||||
"id": "ChatOutput-xQxLm",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -517,9 +486,7 @@
|
|||
"display_name": "Background Color",
|
||||
"dynamic": false,
|
||||
"info": "The background color of the icon.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "background_color",
|
||||
|
|
@ -539,9 +506,7 @@
|
|||
"display_name": "Icon",
|
||||
"dynamic": false,
|
||||
"info": "The icon of the message.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "chat_icon",
|
||||
|
|
@ -579,9 +544,7 @@
|
|||
"display_name": "Data Template",
|
||||
"dynamic": false,
|
||||
"info": "Template to convert Data to Text. If left empty, it will be dynamically set to the Data's text key.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "data_template",
|
||||
|
|
@ -601,9 +564,7 @@
|
|||
"display_name": "Text",
|
||||
"dynamic": false,
|
||||
"info": "Message to be passed as output.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "input_value",
|
||||
|
|
@ -624,10 +585,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Type of sender.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User"
|
||||
],
|
||||
"options": ["Machine", "User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -643,9 +601,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Name of the sender.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -665,9 +621,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -703,9 +657,7 @@
|
|||
"display_name": "Text Color",
|
||||
"dynamic": false,
|
||||
"info": "The text color of the name",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "text_color",
|
||||
|
|
@ -726,10 +678,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 234,
|
||||
"id": "ChatOutput-wjprm",
|
||||
"id": "ChatOutput-xQxLm",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 2742.72534045604,
|
||||
|
|
@ -745,7 +697,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-QyHO0",
|
||||
"id": "note-K9w8w",
|
||||
"node": {
|
||||
"description": "# Image Sentiment Analysis\nWelcome to the Image Sentiment Classifier - an AI tool for quick image sentiment analysis!\n\n## Instructions\n\n1. **Prepare Your Image**\n - Image should be clear and visible\n\n2. **Upload Options**\n - Open the Playground\n - Click file attachment icon\n - Or drag and drop into playground\n\n3. **Wait for Analysis**\n - System will process the image\n - Uses zero-shot learning\n - Classification happens automatically\n\n4. **Review Results**\n - Get classification: Positive/Negative/Neutral\n - Review confidence level\n - Check reasoning if provided\n\n5. **Expected Classifications**\n - Positive: Happy scenes, smiles, celebrations\n - Negative: Sad scenes, problems, conflicts\n - Neutral: Objects, landscapes, neutral scenes\n\nRemember: The clearer the image, the more accurate the classification! 📸✨",
|
||||
"display_name": "",
|
||||
|
|
@ -756,10 +708,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 583,
|
||||
"id": "note-QyHO0",
|
||||
"id": "note-K9w8w",
|
||||
"measured": {
|
||||
"height": 583,
|
||||
"width": 328
|
||||
"height": 570,
|
||||
"width": 325
|
||||
},
|
||||
"position": {
|
||||
"x": 791.7294511578832,
|
||||
|
|
@ -773,20 +725,18 @@
|
|||
"selected": false,
|
||||
"style": {
|
||||
"height": 583,
|
||||
"width": 436
|
||||
"width": 324
|
||||
},
|
||||
"type": "noteNode",
|
||||
"width": 436
|
||||
"width": 324
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"description": "Transforms LLM responses into **structured data formats**. Ideal for extracting specific information or creating consistent outputs.",
|
||||
"display_name": "Structured Output",
|
||||
"id": "StructuredOutputComponent-a20pA",
|
||||
"id": "StructuredOutputComponent-XYoUc",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data"
|
||||
],
|
||||
"base_classes": ["Data"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -814,9 +764,7 @@
|
|||
"method": "build_structured_output",
|
||||
"name": "structured_output",
|
||||
"selected": "Data",
|
||||
"types": [
|
||||
"Data"
|
||||
],
|
||||
"types": ["Data"],
|
||||
"value": "__UNDEFINED__"
|
||||
}
|
||||
],
|
||||
|
|
@ -847,9 +795,7 @@
|
|||
"display_name": "Input message",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "input_value",
|
||||
|
|
@ -869,9 +815,7 @@
|
|||
"display_name": "Language Model",
|
||||
"dynamic": false,
|
||||
"info": "The language model to use to generate the structured output.",
|
||||
"input_types": [
|
||||
"LanguageModel"
|
||||
],
|
||||
"input_types": ["LanguageModel"],
|
||||
"list": false,
|
||||
"name": "llm",
|
||||
"placeholder": "",
|
||||
|
|
@ -994,10 +938,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 541,
|
||||
"id": "StructuredOutputComponent-a20pA",
|
||||
"id": "StructuredOutputComponent-XYoUc",
|
||||
"measured": {
|
||||
"height": 541,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 2029.441019694193,
|
||||
|
|
@ -1013,11 +957,9 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "ParseData-HAm0G",
|
||||
"id": "ParseData-HzweJ",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -1025,11 +967,7 @@
|
|||
"display_name": "Parse Data",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"data",
|
||||
"template",
|
||||
"sep"
|
||||
],
|
||||
"field_order": ["data", "template", "sep"],
|
||||
"frozen": false,
|
||||
"icon": "message-square",
|
||||
"legacy": false,
|
||||
|
|
@ -1091,9 +1029,7 @@
|
|||
"display_name": "Data",
|
||||
"dynamic": false,
|
||||
"info": "The data to convert to text.",
|
||||
"input_types": [
|
||||
"Data"
|
||||
],
|
||||
"input_types": ["Data"],
|
||||
"list": true,
|
||||
"name": "data",
|
||||
"placeholder": "",
|
||||
|
|
@ -1129,9 +1065,7 @@
|
|||
"display_name": "Template",
|
||||
"dynamic": false,
|
||||
"info": "The template to use for formatting the data. It can contain the keys {text}, {data} or any other key in the Data.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -1153,10 +1087,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 302,
|
||||
"id": "ParseData-HAm0G",
|
||||
"id": "ParseData-HzweJ",
|
||||
"measured": {
|
||||
"height": 302,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 2389.490977317181,
|
||||
|
|
@ -1174,11 +1108,9 @@
|
|||
"data": {
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"id": "Prompt-aZBZD",
|
||||
"id": "Prompt-AzK6t",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {
|
||||
|
|
@ -1188,9 +1120,7 @@
|
|||
"display_name": "Prompt",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"template"
|
||||
],
|
||||
"field_order": ["template"],
|
||||
"frozen": false,
|
||||
"icon": "prompts",
|
||||
"legacy": false,
|
||||
|
|
@ -1257,9 +1187,7 @@
|
|||
"display_name": "Tool Placeholder",
|
||||
"dynamic": false,
|
||||
"info": "A placeholder input for tool mode.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "tool_placeholder",
|
||||
|
|
@ -1280,10 +1208,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 260,
|
||||
"id": "Prompt-aZBZD",
|
||||
"id": "Prompt-AzK6t",
|
||||
"measured": {
|
||||
"height": 260,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1262.0179832573751,
|
||||
|
|
@ -1299,12 +1227,9 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "OpenAIModel-i45Zr",
|
||||
"id": "OpenAIModel-cqeNw",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"LanguageModel",
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["LanguageModel", "Message"],
|
||||
"beta": false,
|
||||
"category": "models",
|
||||
"conditional_paths": [],
|
||||
|
|
@ -1354,9 +1279,7 @@
|
|||
"display_name": "Language Model",
|
||||
"method": "build_model",
|
||||
"name": "model_output",
|
||||
"required_inputs": [
|
||||
"api_key"
|
||||
],
|
||||
"required_inputs": ["api_key"],
|
||||
"selected": "LanguageModel",
|
||||
"tool_mode": true,
|
||||
"types": [
|
||||
|
|
@ -1375,9 +1298,7 @@
|
|||
"display_name": "OpenAI API Key",
|
||||
"dynamic": false,
|
||||
"info": "The OpenAI API Key to use for the OpenAI model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"load_from_db": true,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
|
|
@ -1386,7 +1307,7 @@
|
|||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "str",
|
||||
"value": "OPENAI_API_KEY"
|
||||
"value": ""
|
||||
},
|
||||
"code": {
|
||||
"advanced": true,
|
||||
|
|
@ -1412,9 +1333,7 @@
|
|||
"display_name": "Input",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -1578,9 +1497,7 @@
|
|||
"display_name": "System Message",
|
||||
"dynamic": false,
|
||||
"info": "System message to pass to the model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -1631,10 +1548,10 @@
|
|||
"type": "OpenAIModel"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "OpenAIModel-i45Zr",
|
||||
"id": "OpenAIModel-cqeNw",
|
||||
"measured": {
|
||||
"height": 734,
|
||||
"width": 360
|
||||
"height": 653,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1638.1662423437713,
|
||||
|
|
@ -1658,7 +1575,5 @@
|
|||
"is_component": false,
|
||||
"last_tested_version": "1.0.19.post2",
|
||||
"name": "Image Sentiment Analysis",
|
||||
"tags": [
|
||||
"classification"
|
||||
]
|
||||
}
|
||||
"tags": ["classification"]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,16 +9,12 @@
|
|||
"dataType": "StructuredOutputComponent",
|
||||
"id": "StructuredOutputComponent-y5YEE",
|
||||
"name": "structured_output",
|
||||
"output_types": [
|
||||
"Data"
|
||||
]
|
||||
"output_types": ["Data"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "data",
|
||||
"id": "ParseData-8KK2E",
|
||||
"inputTypes": [
|
||||
"Data"
|
||||
],
|
||||
"inputTypes": ["Data"],
|
||||
"type": "other"
|
||||
}
|
||||
},
|
||||
|
|
@ -37,16 +33,12 @@
|
|||
"dataType": "ParseData",
|
||||
"id": "ParseData-8KK2E",
|
||||
"name": "text",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "ChatOutput-gEsYh",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
|
|
@ -65,16 +57,12 @@
|
|||
"dataType": "ChatInput",
|
||||
"id": "ChatInput-vuvZ4",
|
||||
"name": "message",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "Agent-lyqby",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
|
|
@ -93,16 +81,12 @@
|
|||
"dataType": "Agent",
|
||||
"id": "Agent-lyqby",
|
||||
"name": "response",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "StructuredOutputComponent-y5YEE",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
|
|
@ -121,16 +105,12 @@
|
|||
"dataType": "TavilySearchComponent",
|
||||
"id": "TavilySearchComponent-Gv4zn",
|
||||
"name": "component_as_tool",
|
||||
"output_types": [
|
||||
"Tool"
|
||||
]
|
||||
"output_types": ["Tool"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "tools",
|
||||
"id": "Agent-lyqby",
|
||||
"inputTypes": [
|
||||
"Tool"
|
||||
],
|
||||
"inputTypes": ["Tool"],
|
||||
"type": "other"
|
||||
}
|
||||
},
|
||||
|
|
@ -146,16 +126,12 @@
|
|||
"dataType": "OpenAIModel",
|
||||
"id": "OpenAIModel-Yo7s2",
|
||||
"name": "model_output",
|
||||
"output_types": [
|
||||
"LanguageModel"
|
||||
]
|
||||
"output_types": ["LanguageModel"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "llm",
|
||||
"id": "StructuredOutputComponent-y5YEE",
|
||||
"inputTypes": [
|
||||
"LanguageModel"
|
||||
],
|
||||
"inputTypes": ["LanguageModel"],
|
||||
"type": "other"
|
||||
}
|
||||
},
|
||||
|
|
@ -173,9 +149,7 @@
|
|||
"display_name": "Chat Input",
|
||||
"id": "ChatInput-vuvZ4",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -224,9 +198,7 @@
|
|||
"display_name": "Background Color",
|
||||
"dynamic": false,
|
||||
"info": "The background color of the icon.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "background_color",
|
||||
|
|
@ -245,9 +217,7 @@
|
|||
"display_name": "Icon",
|
||||
"dynamic": false,
|
||||
"info": "The icon of the message.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "chat_icon",
|
||||
|
|
@ -348,10 +318,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Type of sender.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User"
|
||||
],
|
||||
"options": ["Machine", "User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -366,9 +333,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Name of the sender.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -387,9 +352,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -424,9 +387,7 @@
|
|||
"display_name": "Text Color",
|
||||
"dynamic": false,
|
||||
"info": "The text color of the name",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "text_color",
|
||||
|
|
@ -468,9 +429,7 @@
|
|||
"display_name": "Chat Output",
|
||||
"id": "ChatOutput-gEsYh",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -519,9 +478,7 @@
|
|||
"display_name": "Background Color",
|
||||
"dynamic": false,
|
||||
"info": "The background color of the icon.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "background_color",
|
||||
|
|
@ -541,9 +498,7 @@
|
|||
"display_name": "Icon",
|
||||
"dynamic": false,
|
||||
"info": "The icon of the message.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "chat_icon",
|
||||
|
|
@ -581,9 +536,7 @@
|
|||
"display_name": "Data Template",
|
||||
"dynamic": false,
|
||||
"info": "Template to convert Data to Text. If left empty, it will be dynamically set to the Data's text key.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "data_template",
|
||||
|
|
@ -603,9 +556,7 @@
|
|||
"display_name": "Text",
|
||||
"dynamic": false,
|
||||
"info": "Message to be passed as output.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "input_value",
|
||||
|
|
@ -626,10 +577,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Type of sender.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User"
|
||||
],
|
||||
"options": ["Machine", "User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -645,9 +593,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Name of the sender.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -667,9 +613,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -705,9 +649,7 @@
|
|||
"display_name": "Text Color",
|
||||
"dynamic": false,
|
||||
"info": "The text color of the name",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "text_color",
|
||||
|
|
@ -759,11 +701,11 @@
|
|||
"type": "note"
|
||||
},
|
||||
"dragging": false,
|
||||
"height": 403,
|
||||
"height": 324,
|
||||
"id": "note-siDHB",
|
||||
"measured": {
|
||||
"height": 403,
|
||||
"width": 328
|
||||
"height": 324,
|
||||
"width": 324
|
||||
},
|
||||
"position": {
|
||||
"x": 2089.5869930853464,
|
||||
|
|
@ -776,11 +718,11 @@
|
|||
"resizing": false,
|
||||
"selected": false,
|
||||
"style": {
|
||||
"height": 403,
|
||||
"width": 461
|
||||
"height": 324,
|
||||
"width": 324
|
||||
},
|
||||
"type": "noteNode",
|
||||
"width": 461
|
||||
"width": 324
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
|
|
@ -796,11 +738,11 @@
|
|||
"type": "note"
|
||||
},
|
||||
"dragging": false,
|
||||
"height": 382,
|
||||
"height": 324,
|
||||
"id": "note-gjsCT",
|
||||
"measured": {
|
||||
"height": 382,
|
||||
"width": 328
|
||||
"height": 324,
|
||||
"width": 324
|
||||
},
|
||||
"position": {
|
||||
"x": 1237.6627823432912,
|
||||
|
|
@ -813,11 +755,11 @@
|
|||
"resizing": false,
|
||||
"selected": false,
|
||||
"style": {
|
||||
"height": 382,
|
||||
"width": 398
|
||||
"height": 324,
|
||||
"width": 324
|
||||
},
|
||||
"type": "noteNode",
|
||||
"width": 398
|
||||
"width": 324
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
|
|
@ -833,11 +775,11 @@
|
|||
"type": "note"
|
||||
},
|
||||
"dragging": false,
|
||||
"height": 513,
|
||||
"height": 324,
|
||||
"id": "note-IftyY",
|
||||
"measured": {
|
||||
"height": 513,
|
||||
"width": 328
|
||||
"height": 324,
|
||||
"width": 324
|
||||
},
|
||||
"position": {
|
||||
"x": 244.92297036777086,
|
||||
|
|
@ -850,11 +792,11 @@
|
|||
"resizing": false,
|
||||
"selected": false,
|
||||
"style": {
|
||||
"height": 513,
|
||||
"width": 567
|
||||
"height": 324,
|
||||
"width": 324
|
||||
},
|
||||
"type": "noteNode",
|
||||
"width": 567
|
||||
"width": 324
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
|
|
@ -862,9 +804,7 @@
|
|||
"display_name": "Structured Output",
|
||||
"id": "StructuredOutputComponent-y5YEE",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data"
|
||||
],
|
||||
"base_classes": ["Data"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -892,9 +832,7 @@
|
|||
"method": "build_structured_output",
|
||||
"name": "structured_output",
|
||||
"selected": "Data",
|
||||
"types": [
|
||||
"Data"
|
||||
],
|
||||
"types": ["Data"],
|
||||
"value": "__UNDEFINED__"
|
||||
}
|
||||
],
|
||||
|
|
@ -925,9 +863,7 @@
|
|||
"display_name": "Input message",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "input_value",
|
||||
|
|
@ -947,9 +883,7 @@
|
|||
"display_name": "Language Model",
|
||||
"dynamic": false,
|
||||
"info": "The language model to use to generate the structured output.",
|
||||
"input_types": [
|
||||
"LanguageModel"
|
||||
],
|
||||
"input_types": ["LanguageModel"],
|
||||
"list": false,
|
||||
"name": "llm",
|
||||
"placeholder": "",
|
||||
|
|
@ -1141,9 +1075,7 @@
|
|||
"data": {
|
||||
"id": "ParseData-8KK2E",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"category": "helpers",
|
||||
"conditional_paths": [],
|
||||
|
|
@ -1152,11 +1084,7 @@
|
|||
"display_name": "Parse Data",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"data",
|
||||
"template",
|
||||
"sep"
|
||||
],
|
||||
"field_order": ["data", "template", "sep"],
|
||||
"frozen": false,
|
||||
"icon": "message-square",
|
||||
"key": "ParseData",
|
||||
|
|
@ -1219,9 +1147,7 @@
|
|||
"display_name": "Data",
|
||||
"dynamic": false,
|
||||
"info": "The data to convert to text.",
|
||||
"input_types": [
|
||||
"Data"
|
||||
],
|
||||
"input_types": ["Data"],
|
||||
"list": true,
|
||||
"name": "data",
|
||||
"placeholder": "",
|
||||
|
|
@ -1256,9 +1182,7 @@
|
|||
"display_name": "Template",
|
||||
"dynamic": false,
|
||||
"info": "The template to use for formatting the data. It can contain the keys {text}, {data} or any other key in the Data.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -1301,9 +1225,7 @@
|
|||
"display_name": "Agent",
|
||||
"id": "Agent-lyqby",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -1385,9 +1307,7 @@
|
|||
"display_name": "Agent Description [Deprecated]",
|
||||
"dynamic": false,
|
||||
"info": "The description of the agent. This is only used when in Tool Mode. Defaults to 'A helpful assistant with access to the following tools:' and tools are added dynamically. This feature is deprecated and will be removed in future versions.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -1437,9 +1357,7 @@
|
|||
"display_name": "OpenAI API Key",
|
||||
"dynamic": false,
|
||||
"info": "The OpenAI API Key to use for the OpenAI model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"load_from_db": true,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
|
|
@ -1490,9 +1408,7 @@
|
|||
"display_name": "Input",
|
||||
"dynamic": false,
|
||||
"info": "The input provided by the user for the agent to process.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "input_value",
|
||||
|
|
@ -1566,9 +1482,7 @@
|
|||
"display_name": "External Memory",
|
||||
"dynamic": false,
|
||||
"info": "Retrieve messages from an external memory. If empty, it will use the Langflow tables.",
|
||||
"input_types": [
|
||||
"Memory"
|
||||
],
|
||||
"input_types": ["Memory"],
|
||||
"list": false,
|
||||
"name": "memory",
|
||||
"placeholder": "",
|
||||
|
|
@ -1662,10 +1576,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Order of the messages.",
|
||||
"name": "order",
|
||||
"options": [
|
||||
"Ascending",
|
||||
"Descending"
|
||||
],
|
||||
"options": ["Ascending", "Descending"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -1699,11 +1610,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Filter by sender type.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User",
|
||||
"Machine and User"
|
||||
],
|
||||
"options": ["Machine", "User", "Machine and User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -1719,9 +1626,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Filter by sender name.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -1741,9 +1646,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -1763,9 +1666,7 @@
|
|||
"display_name": "Agent Instructions",
|
||||
"dynamic": false,
|
||||
"info": "System Prompt: Initial instructions and context provided to guide the agent's behavior.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -1802,9 +1703,7 @@
|
|||
"display_name": "Template",
|
||||
"dynamic": false,
|
||||
"info": "The template to use for formatting the data. It can contain the keys {text}, {sender} or any other key in the message data.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -1825,9 +1724,7 @@
|
|||
"display_name": "Tools",
|
||||
"dynamic": false,
|
||||
"info": "These are the tools that the agent can use to help with tasks.",
|
||||
"input_types": [
|
||||
"Tool"
|
||||
],
|
||||
"input_types": ["Tool"],
|
||||
"list": true,
|
||||
"name": "tools",
|
||||
"placeholder": "",
|
||||
|
|
@ -1888,11 +1785,11 @@
|
|||
"type": "note"
|
||||
},
|
||||
"dragging": false,
|
||||
"height": 325,
|
||||
"height": 324,
|
||||
"id": "note-Z3HC2",
|
||||
"measured": {
|
||||
"height": 325,
|
||||
"width": 328
|
||||
"height": 324,
|
||||
"width": 324
|
||||
},
|
||||
"position": {
|
||||
"x": 878.7898510090017,
|
||||
|
|
@ -1904,16 +1801,13 @@
|
|||
},
|
||||
"selected": false,
|
||||
"type": "noteNode",
|
||||
"width": 325
|
||||
"width": 324
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "TavilySearchComponent-Gv4zn",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data",
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Data", "Message"],
|
||||
"beta": false,
|
||||
"category": "tools",
|
||||
"conditional_paths": [],
|
||||
|
|
@ -1949,9 +1843,7 @@
|
|||
"name": "component_as_tool",
|
||||
"required_inputs": null,
|
||||
"selected": "Tool",
|
||||
"types": [
|
||||
"Tool"
|
||||
],
|
||||
"types": ["Tool"],
|
||||
"value": "__UNDEFINED__"
|
||||
}
|
||||
],
|
||||
|
|
@ -1965,9 +1857,7 @@
|
|||
"display_name": "Tavily API Key",
|
||||
"dynamic": false,
|
||||
"info": "Your Tavily API Key.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"load_from_db": true,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
|
|
@ -2056,9 +1946,7 @@
|
|||
"display_name": "Search Query",
|
||||
"dynamic": false,
|
||||
"info": "The search query you want to execute with Tavily.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -2081,10 +1969,7 @@
|
|||
"dynamic": false,
|
||||
"info": "The depth of the search.",
|
||||
"name": "search_depth",
|
||||
"options": [
|
||||
"basic",
|
||||
"advanced"
|
||||
],
|
||||
"options": ["basic", "advanced"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -2119,10 +2004,7 @@
|
|||
"description": "Modify tool names and descriptions to help agents understand when to use each tool.",
|
||||
"field_parsers": {
|
||||
"commands": "commands",
|
||||
"name": [
|
||||
"snake_case",
|
||||
"no_blank"
|
||||
]
|
||||
"name": ["snake_case", "no_blank"]
|
||||
},
|
||||
"hide_options": true
|
||||
},
|
||||
|
|
@ -2173,16 +2055,12 @@
|
|||
{
|
||||
"description": "fetch_content(api_key: Message) - **Tavily AI** is a search engine optimized for LLMs and RAG, aimed at efficient, quick, and persistent search results.",
|
||||
"name": "None-fetch_content",
|
||||
"tags": [
|
||||
"None-fetch_content"
|
||||
]
|
||||
"tags": ["None-fetch_content"]
|
||||
},
|
||||
{
|
||||
"description": "fetch_content_text(api_key: Message) - **Tavily AI** is a search engine optimized for LLMs and RAG, aimed at efficient, quick, and persistent search results.",
|
||||
"name": "None-fetch_content_text",
|
||||
"tags": [
|
||||
"None-fetch_content_text"
|
||||
]
|
||||
"tags": ["None-fetch_content_text"]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -2194,10 +2072,7 @@
|
|||
"dynamic": false,
|
||||
"info": "The category of the search.",
|
||||
"name": "topic",
|
||||
"options": [
|
||||
"general",
|
||||
"news"
|
||||
],
|
||||
"options": ["general", "news"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -2230,10 +2105,7 @@
|
|||
"data": {
|
||||
"id": "OpenAIModel-Yo7s2",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"LanguageModel",
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["LanguageModel", "Message"],
|
||||
"beta": false,
|
||||
"category": "models",
|
||||
"conditional_paths": [],
|
||||
|
|
@ -2283,9 +2155,7 @@
|
|||
"display_name": "Language Model",
|
||||
"method": "build_model",
|
||||
"name": "model_output",
|
||||
"required_inputs": [
|
||||
"api_key"
|
||||
],
|
||||
"required_inputs": ["api_key"],
|
||||
"selected": "LanguageModel",
|
||||
"tool_mode": true,
|
||||
"types": [
|
||||
|
|
@ -2304,9 +2174,7 @@
|
|||
"display_name": "OpenAI API Key",
|
||||
"dynamic": false,
|
||||
"info": "The OpenAI API Key to use for the OpenAI model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"load_from_db": true,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
|
|
@ -2341,9 +2209,7 @@
|
|||
"display_name": "Input",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -2507,9 +2373,7 @@
|
|||
"display_name": "System Message",
|
||||
"dynamic": false,
|
||||
"info": "System message to pass to the model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -2587,8 +2451,5 @@
|
|||
"is_component": false,
|
||||
"last_tested_version": "1.1.1",
|
||||
"name": "Market Research",
|
||||
"tags": [
|
||||
"assistants",
|
||||
"agents"
|
||||
]
|
||||
}
|
||||
"tags": ["assistants", "agents"]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,112 +6,100 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Memory",
|
||||
"id": "Memory-W1a3k",
|
||||
"id": "Memory-gWJrq",
|
||||
"name": "messages_text",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "memory",
|
||||
"id": "Prompt-q8R26",
|
||||
"inputTypes": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"id": "Prompt-yhdMP",
|
||||
"inputTypes": ["Message", "Text"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Memory-W1a3k{œdataTypeœ:œMemoryœ,œidœ:œMemory-W1a3kœ,œnameœ:œmessages_textœ,œoutput_typesœ:[œMessageœ]}-Prompt-q8R26{œfieldNameœ:œmemoryœ,œidœ:œPrompt-q8R26œ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"source": "Memory-W1a3k",
|
||||
"sourceHandle": "{œdataTypeœ: œMemoryœ, œidœ: œMemory-W1a3kœ, œnameœ: œmessages_textœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-q8R26",
|
||||
"targetHandle": "{œfieldNameœ: œmemoryœ, œidœ: œPrompt-q8R26œ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Memory-gWJrq{œdataTypeœ:œMemoryœ,œidœ:œMemory-gWJrqœ,œnameœ:œmessages_textœ,œoutput_typesœ:[œMessageœ]}-Prompt-yhdMP{œfieldNameœ:œmemoryœ,œidœ:œPrompt-yhdMPœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "Memory-gWJrq",
|
||||
"sourceHandle": "{œdataTypeœ: œMemoryœ, œidœ: œMemory-gWJrqœ, œnameœ: œmessages_textœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-yhdMP",
|
||||
"targetHandle": "{œfieldNameœ: œmemoryœ, œidœ: œPrompt-yhdMPœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "ChatInput",
|
||||
"id": "ChatInput-LrPKe",
|
||||
"id": "ChatInput-PEO9d",
|
||||
"name": "message",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "OpenAIModel-BSFD4",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "OpenAIModel-63o3Q",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__ChatInput-LrPKe{œdataTypeœ:œChatInputœ,œidœ:œChatInput-LrPKeœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-BSFD4{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-BSFD4œ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "ChatInput-LrPKe",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-LrPKeœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-BSFD4",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-BSFD4œ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-ChatInput-PEO9d{œdataTypeœ:œChatInputœ,œidœ:œChatInput-PEO9dœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-63o3Q{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-63o3Qœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "ChatInput-PEO9d",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-PEO9dœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-63o3Q",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-63o3Qœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-q8R26",
|
||||
"id": "Prompt-yhdMP",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "system_message",
|
||||
"id": "OpenAIModel-BSFD4",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "OpenAIModel-63o3Q",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__Prompt-q8R26{œdataTypeœ:œPromptœ,œidœ:œPrompt-q8R26œ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-BSFD4{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-BSFD4œ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-q8R26",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-q8R26œ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-BSFD4",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-BSFD4œ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Prompt-yhdMP{œdataTypeœ:œPromptœ,œidœ:œPrompt-yhdMPœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-63o3Q{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-63o3Qœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "Prompt-yhdMP",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-yhdMPœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-63o3Q",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-63o3Qœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "OpenAIModel",
|
||||
"id": "OpenAIModel-BSFD4",
|
||||
"id": "OpenAIModel-63o3Q",
|
||||
"name": "text_output",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "ChatOutput-Fk6pf",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "ChatOutput-BIXzI",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__OpenAIModel-BSFD4{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-BSFD4œ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-Fk6pf{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-Fk6pfœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "OpenAIModel-BSFD4",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-BSFD4œ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-Fk6pf",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-Fk6pfœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-OpenAIModel-63o3Q{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-63o3Qœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-BIXzI{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-BIXzIœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "OpenAIModel-63o3Q",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-63o3Qœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-BIXzI",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-BIXzIœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
{
|
||||
"data": {
|
||||
"id": "ChatInput-LrPKe",
|
||||
"id": "ChatInput-PEO9d",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -160,9 +148,7 @@
|
|||
"display_name": "Background Color",
|
||||
"dynamic": false,
|
||||
"info": "The background color of the icon.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "background_color",
|
||||
|
|
@ -182,9 +168,7 @@
|
|||
"display_name": "Icon",
|
||||
"dynamic": false,
|
||||
"info": "The icon of the message.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "chat_icon",
|
||||
|
|
@ -287,10 +271,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Type of sender.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User"
|
||||
],
|
||||
"options": ["Machine", "User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -306,9 +287,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Name of the sender.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -328,9 +307,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -366,9 +343,7 @@
|
|||
"display_name": "Text Color",
|
||||
"dynamic": false,
|
||||
"info": "The text color of the name",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "text_color",
|
||||
|
|
@ -389,10 +364,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 234,
|
||||
"id": "ChatInput-LrPKe",
|
||||
"id": "ChatInput-PEO9d",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 2321.5543981677606,
|
||||
|
|
@ -410,11 +385,9 @@
|
|||
"data": {
|
||||
"description": "Display a chat message in the Playground.",
|
||||
"display_name": "Chat Output",
|
||||
"id": "ChatOutput-Fk6pf",
|
||||
"id": "ChatOutput-BIXzI",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -463,9 +436,7 @@
|
|||
"display_name": "Background Color",
|
||||
"dynamic": false,
|
||||
"info": "The background color of the icon.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "background_color",
|
||||
|
|
@ -485,9 +456,7 @@
|
|||
"display_name": "Icon",
|
||||
"dynamic": false,
|
||||
"info": "The icon of the message.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "chat_icon",
|
||||
|
|
@ -525,9 +494,7 @@
|
|||
"display_name": "Data Template",
|
||||
"dynamic": false,
|
||||
"info": "Template to convert Data to Text. If left empty, it will be dynamically set to the Data's text key.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "data_template",
|
||||
|
|
@ -547,9 +514,7 @@
|
|||
"display_name": "Text",
|
||||
"dynamic": false,
|
||||
"info": "Message to be passed as output.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "input_value",
|
||||
|
|
@ -570,10 +535,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Type of sender.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User"
|
||||
],
|
||||
"options": ["Machine", "User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -589,9 +551,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Name of the sender.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -611,9 +571,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -649,9 +607,7 @@
|
|||
"display_name": "Text Color",
|
||||
"dynamic": false,
|
||||
"info": "The text color of the name",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "text_color",
|
||||
|
|
@ -672,10 +628,10 @@
|
|||
},
|
||||
"dragging": true,
|
||||
"height": 234,
|
||||
"id": "ChatOutput-Fk6pf",
|
||||
"id": "ChatOutput-BIXzI",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 3113.9880204333917,
|
||||
|
|
@ -685,13 +641,13 @@
|
|||
"x": 3101.965731391458,
|
||||
"y": 776.4408905693839
|
||||
},
|
||||
"selected": true,
|
||||
"selected": false,
|
||||
"type": "genericNode",
|
||||
"width": 320
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-gj6hj",
|
||||
"id": "note-jlIQj",
|
||||
"node": {
|
||||
"description": "# Memory Chatbot\n\nA flexible chatbot implementation featuring advanced conversation memory capabilities. This serves as a foundational tool for building chat experiences with persistent context.\n\n## Core Components\n\n1. **Chat Input**\n - Accepts user messages\n - Configures conversation storage\n - Tracks session identity\n\n2. **Chat Memory**\n - Stores and retrieves up to 100 previous messages\n - Maintains conversation context\n - Tracks separate chat sessions\n - Preserves sender information and message order\n\n3. **Prompt**\n - Creates dynamic prompt templates\n - Integrates memory into conversation flow\n\n4. **OpenAI**\n - Processes user input with context\n - Accesses conversation history\n - Includes options for model configuration and API key setup\n\n5. **Chat Output**\n - Displays formatted responses\n - Maintains conversation flow\n - Syncs with memory storage\n\n## Memory Features\n\n- Stores message history\n- Plans conversation trajectory\n- Differentiates between chat sessions\n- Preserves sender and message metadata\n\n## Quick Start\n\n1. **Initialize** with a clear session ID\n2. **Enter** message in Chat Input\n3. **AI Processes** with context from memory\n4. **Response** appears in Chat Output\n5. Context remains available for follow-ups\n\nThis robust system demonstrates thorough memory integration with minimal complexity. 🧠💬\n",
|
||||
"display_name": "",
|
||||
|
|
@ -702,10 +658,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 736,
|
||||
"id": "note-gj6hj",
|
||||
"id": "note-jlIQj",
|
||||
"measured": {
|
||||
"height": 736,
|
||||
"width": 328
|
||||
"height": 733,
|
||||
"width": 325
|
||||
},
|
||||
"position": {
|
||||
"x": 1512.8976594415833,
|
||||
|
|
@ -719,14 +675,14 @@
|
|||
"selected": false,
|
||||
"style": {
|
||||
"height": 736,
|
||||
"width": 382
|
||||
"width": 324
|
||||
},
|
||||
"type": "noteNode",
|
||||
"width": 382
|
||||
"width": 324
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-SQs3p",
|
||||
"id": "note-oU1IW",
|
||||
"node": {
|
||||
"description": "## Get Your OpenAI API Key\n\n**Steps**:\n\n1. **Visit** [OpenAI's API Key Page](https://platform.openai.com/api-keys).\n\n2. **Log In/Sign Up**:\n - Log in or create a new OpenAI account.\n\n3. **Generate API Key**:\n - Click \"Create New Secret Key\" to obtain your key.\n\n4. **Store Your Key Securely**:\n - Note it down as it will only display once.\n\n5. **Enter API Key**:\n - Input your key in the OpenAI API Key field within the component setup.\n\nKeep your key safe and manage it responsibly!",
|
||||
"display_name": "",
|
||||
|
|
@ -739,10 +695,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 325,
|
||||
"id": "note-SQs3p",
|
||||
"id": "note-oU1IW",
|
||||
"measured": {
|
||||
"height": 325,
|
||||
"width": 328
|
||||
"height": 324,
|
||||
"width": 325
|
||||
},
|
||||
"position": {
|
||||
"x": 2727.7060397092964,
|
||||
|
|
@ -758,12 +714,9 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "Memory-W1a3k",
|
||||
"id": "Memory-gWJrq",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data",
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Data", "Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -841,9 +794,7 @@
|
|||
"display_name": "External Memory",
|
||||
"dynamic": false,
|
||||
"info": "Retrieve messages from an external memory. If empty, it will use the Langflow tables.",
|
||||
"input_types": [
|
||||
"Memory"
|
||||
],
|
||||
"input_types": ["Memory"],
|
||||
"list": false,
|
||||
"name": "memory",
|
||||
"placeholder": "",
|
||||
|
|
@ -878,10 +829,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Order of the messages.",
|
||||
"name": "order",
|
||||
"options": [
|
||||
"Ascending",
|
||||
"Descending"
|
||||
],
|
||||
"options": ["Ascending", "Descending"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -899,11 +847,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Filter by sender type.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User",
|
||||
"Machine and User"
|
||||
],
|
||||
"options": ["Machine", "User", "Machine and User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -919,9 +863,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Filter by sender name.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -941,9 +883,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -963,9 +903,7 @@
|
|||
"display_name": "Template",
|
||||
"dynamic": false,
|
||||
"info": "The template to use for formatting the data. It can contain the keys {text}, {sender} or any other key in the message data.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -987,10 +925,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 264,
|
||||
"id": "Memory-W1a3k",
|
||||
"id": "Memory-gWJrq",
|
||||
"measured": {
|
||||
"height": 264,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1947.7805399474369,
|
||||
|
|
@ -1006,26 +944,20 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "Prompt-q8R26",
|
||||
"id": "Prompt-yhdMP",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {
|
||||
"template": [
|
||||
"memory"
|
||||
]
|
||||
"template": ["memory"]
|
||||
},
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"error": null,
|
||||
"field_order": [
|
||||
"template"
|
||||
],
|
||||
"field_order": ["template"],
|
||||
"frozen": false,
|
||||
"full_path": null,
|
||||
"icon": "prompts",
|
||||
|
|
@ -1081,10 +1013,7 @@
|
|||
"fileTypes": [],
|
||||
"file_path": "",
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"input_types": ["Message", "Text"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -1119,9 +1048,7 @@
|
|||
"display_name": "Tool Placeholder",
|
||||
"dynamic": false,
|
||||
"info": "A placeholder input for tool mode.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "tool_placeholder",
|
||||
|
|
@ -1142,10 +1069,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 347,
|
||||
"id": "Prompt-q8R26",
|
||||
"id": "Prompt-yhdMP",
|
||||
"measured": {
|
||||
"height": 347,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 2327.422938009026,
|
||||
|
|
@ -1161,12 +1088,9 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "OpenAIModel-BSFD4",
|
||||
"id": "OpenAIModel-63o3Q",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"LanguageModel",
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["LanguageModel", "Message"],
|
||||
"beta": false,
|
||||
"category": "models",
|
||||
"conditional_paths": [],
|
||||
|
|
@ -1216,9 +1140,7 @@
|
|||
"display_name": "Language Model",
|
||||
"method": "build_model",
|
||||
"name": "model_output",
|
||||
"required_inputs": [
|
||||
"api_key"
|
||||
],
|
||||
"required_inputs": ["api_key"],
|
||||
"selected": "LanguageModel",
|
||||
"tool_mode": true,
|
||||
"types": [
|
||||
|
|
@ -1237,9 +1159,7 @@
|
|||
"display_name": "OpenAI API Key",
|
||||
"dynamic": false,
|
||||
"info": "The OpenAI API Key to use for the OpenAI model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"load_from_db": true,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
|
|
@ -1248,7 +1168,7 @@
|
|||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "str",
|
||||
"value": "OPENAI_API_KEY"
|
||||
"value": ""
|
||||
},
|
||||
"code": {
|
||||
"advanced": true,
|
||||
|
|
@ -1274,9 +1194,7 @@
|
|||
"display_name": "Input",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -1440,9 +1358,7 @@
|
|||
"display_name": "System Message",
|
||||
"dynamic": false,
|
||||
"info": "System message to pass to the model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -1493,10 +1409,10 @@
|
|||
"type": "OpenAIModel"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "OpenAIModel-BSFD4",
|
||||
"id": "OpenAIModel-63o3Q",
|
||||
"measured": {
|
||||
"height": 734,
|
||||
"width": 360
|
||||
"height": 653,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 2726.7429097065215,
|
||||
|
|
@ -1520,9 +1436,5 @@
|
|||
"is_component": false,
|
||||
"last_tested_version": "1.0.19.post2",
|
||||
"name": "Memory Chatbot",
|
||||
"tags": [
|
||||
"chatbots",
|
||||
"openai",
|
||||
"assistants"
|
||||
]
|
||||
}
|
||||
"tags": ["chatbots", "openai", "assistants"]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "ChatInput",
|
||||
"id": "ChatInput-JfaSH",
|
||||
"id": "ChatInput-hasDY",
|
||||
"name": "message",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "Prompt-QF5LF",
|
||||
"id": "Prompt-GxcHe",
|
||||
"inputTypes": [
|
||||
"Message",
|
||||
"Text"
|
||||
|
|
@ -23,12 +23,12 @@
|
|||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-ChatInput-JfaSH{œdataTypeœ:œChatInputœ,œidœ:œChatInput-JfaSHœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-Prompt-QF5LF{œfieldNameœ:œinput_valueœ,œidœ:œPrompt-QF5LFœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"id": "reactflow__edge-ChatInput-hasDY{œdataTypeœ:œChatInputœ,œidœ:œChatInput-hasDYœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-Prompt-GxcHe{œfieldNameœ:œinput_valueœ,œidœ:œPrompt-GxcHeœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "ChatInput-JfaSH",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-JfaSHœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-QF5LF",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œPrompt-QF5LFœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
"source": "ChatInput-hasDY",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-hasDYœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-GxcHe",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œPrompt-GxcHeœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -36,7 +36,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-vnTcM",
|
||||
"id": "Prompt-oCyQS",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -44,19 +44,19 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "Agent-yGw6Q",
|
||||
"id": "Agent-7qOlO",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Prompt-vnTcM{œdataTypeœ:œPromptœ,œidœ:œPrompt-vnTcMœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-Agent-yGw6Q{œfieldNameœ:œinput_valueœ,œidœ:œAgent-yGw6Qœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"id": "reactflow__edge-Prompt-oCyQS{œdataTypeœ:œPromptœ,œidœ:œPrompt-oCyQSœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-Agent-7qOlO{œfieldNameœ:œinput_valueœ,œidœ:œAgent-7qOlOœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "Prompt-vnTcM",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-vnTcMœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Agent-yGw6Q",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-yGw6Qœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"source": "Prompt-oCyQS",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-oCyQSœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Agent-7qOlO",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-7qOlOœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -64,7 +64,7 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Agent",
|
||||
"id": "Agent-yGw6Q",
|
||||
"id": "Agent-7qOlO",
|
||||
"name": "response",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -72,7 +72,7 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "search_results",
|
||||
"id": "Prompt-QF5LF",
|
||||
"id": "Prompt-GxcHe",
|
||||
"inputTypes": [
|
||||
"Message",
|
||||
"Text"
|
||||
|
|
@ -80,19 +80,19 @@
|
|||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Agent-yGw6Q{œdataTypeœ:œAgentœ,œidœ:œAgent-yGw6Qœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-Prompt-QF5LF{œfieldNameœ:œsearch_resultsœ,œidœ:œPrompt-QF5LFœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"id": "reactflow__edge-Agent-7qOlO{œdataTypeœ:œAgentœ,œidœ:œAgent-7qOlOœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-Prompt-GxcHe{œfieldNameœ:œsearch_resultsœ,œidœ:œPrompt-GxcHeœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "Agent-yGw6Q",
|
||||
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-yGw6Qœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-QF5LF",
|
||||
"targetHandle": "{œfieldNameœ: œsearch_resultsœ, œidœ: œPrompt-QF5LFœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
"source": "Agent-7qOlO",
|
||||
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-7qOlOœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-GxcHe",
|
||||
"targetHandle": "{œfieldNameœ: œsearch_resultsœ, œidœ: œPrompt-GxcHeœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "TavilySearchComponent",
|
||||
"id": "TavilySearchComponent-ChvwJ",
|
||||
"id": "TavilySearchComponent-oJz7N",
|
||||
"name": "component_as_tool",
|
||||
"output_types": [
|
||||
"Tool"
|
||||
|
|
@ -100,24 +100,25 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "tools",
|
||||
"id": "Agent-yGw6Q",
|
||||
"id": "Agent-7qOlO",
|
||||
"inputTypes": [
|
||||
"Tool"
|
||||
],
|
||||
"type": "other"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-TavilySearchComponent-ChvwJ{œdataTypeœ:œTavilySearchComponentœ,œidœ:œTavilySearchComponent-ChvwJœ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-yGw6Q{œfieldNameœ:œtoolsœ,œidœ:œAgent-yGw6Qœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
|
||||
"source": "TavilySearchComponent-ChvwJ",
|
||||
"sourceHandle": "{œdataTypeœ: œTavilySearchComponentœ, œidœ: œTavilySearchComponent-ChvwJœ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
|
||||
"target": "Agent-yGw6Q",
|
||||
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-yGw6Qœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
|
||||
"id": "reactflow__edge-TavilySearchComponent-oJz7N{œdataTypeœ:œTavilySearchComponentœ,œidœ:œTavilySearchComponent-oJz7Nœ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-7qOlO{œfieldNameœ:œtoolsœ,œidœ:œAgent-7qOlOœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
|
||||
"source": "TavilySearchComponent-oJz7N",
|
||||
"sourceHandle": "{œdataTypeœ: œTavilySearchComponentœ, œidœ: œTavilySearchComponent-oJz7Nœ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
|
||||
"target": "Agent-7qOlO",
|
||||
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-7qOlOœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-D14S9",
|
||||
"id": "Prompt-2yPE7",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -125,24 +126,25 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "system_message",
|
||||
"id": "OpenAIModel-FVlqP",
|
||||
"id": "OpenAIModel-VcHpk",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__Prompt-D14S9{œdataTypeœ:œPromptœ,œidœ:œPrompt-D14S9œ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-FVlqP{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-FVlqPœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-D14S9",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-D14S9œ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-FVlqP",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-FVlqPœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Prompt-2yPE7{œdataTypeœ:œPromptœ,œidœ:œPrompt-2yPE7œ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-VcHpk{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-VcHpkœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-2yPE7",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-2yPE7œ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-VcHpk",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-VcHpkœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "ChatInput",
|
||||
"id": "ChatInput-JfaSH",
|
||||
"id": "ChatInput-hasDY",
|
||||
"name": "message",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -150,24 +152,25 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "OpenAIModel-FVlqP",
|
||||
"id": "OpenAIModel-VcHpk",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__ChatInput-JfaSH{œdataTypeœ:œChatInputœ,œidœ:œChatInput-JfaSHœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-FVlqP{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-FVlqPœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "ChatInput-JfaSH",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-JfaSHœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-FVlqP",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-FVlqPœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-ChatInput-hasDY{œdataTypeœ:œChatInputœ,œidœ:œChatInput-hasDYœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-VcHpk{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-VcHpkœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "ChatInput-hasDY",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-hasDYœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-VcHpk",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-VcHpkœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "OpenAIModel",
|
||||
"id": "OpenAIModel-FVlqP",
|
||||
"id": "OpenAIModel-VcHpk",
|
||||
"name": "text_output",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -175,7 +178,7 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "previous_response",
|
||||
"id": "Prompt-vnTcM",
|
||||
"id": "Prompt-oCyQS",
|
||||
"inputTypes": [
|
||||
"Message",
|
||||
"Text"
|
||||
|
|
@ -183,17 +186,18 @@
|
|||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__OpenAIModel-FVlqP{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-FVlqPœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-Prompt-vnTcM{œfieldNameœ:œprevious_responseœ,œidœ:œPrompt-vnTcMœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"source": "OpenAIModel-FVlqP",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-FVlqPœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-vnTcM",
|
||||
"targetHandle": "{œfieldNameœ: œprevious_responseœ, œidœ: œPrompt-vnTcMœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-OpenAIModel-VcHpk{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-VcHpkœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-Prompt-oCyQS{œfieldNameœ:œprevious_responseœ,œidœ:œPrompt-oCyQSœ,œinputTypesœ:[œMessageœ,œTextœ],œtypeœ:œstrœ}",
|
||||
"source": "OpenAIModel-VcHpk",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-VcHpkœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Prompt-oCyQS",
|
||||
"targetHandle": "{œfieldNameœ: œprevious_responseœ, œidœ: œPrompt-oCyQSœ, œinputTypesœ: [œMessageœ, œTextœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-QF5LF",
|
||||
"id": "Prompt-GxcHe",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -201,24 +205,25 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "OpenAIModel-MhnGV",
|
||||
"id": "OpenAIModel-zDrcf",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__Prompt-QF5LF{œdataTypeœ:œPromptœ,œidœ:œPrompt-QF5LFœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-MhnGV{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-MhnGVœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-QF5LF",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-QF5LFœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-MhnGV",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-MhnGVœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Prompt-GxcHe{œdataTypeœ:œPromptœ,œidœ:œPrompt-GxcHeœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-zDrcf{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-zDrcfœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-GxcHe",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-GxcHeœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-zDrcf",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-zDrcfœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-Lqvw5",
|
||||
"id": "Prompt-OoSJu",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -226,24 +231,25 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "system_message",
|
||||
"id": "OpenAIModel-MhnGV",
|
||||
"id": "OpenAIModel-zDrcf",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__Prompt-Lqvw5{œdataTypeœ:œPromptœ,œidœ:œPrompt-Lqvw5œ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-MhnGV{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-MhnGVœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-Lqvw5",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-Lqvw5œ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-MhnGV",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-MhnGVœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Prompt-OoSJu{œdataTypeœ:œPromptœ,œidœ:œPrompt-OoSJuœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-zDrcf{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-zDrcfœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-OoSJu",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-OoSJuœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-zDrcf",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-zDrcfœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "OpenAIModel",
|
||||
"id": "OpenAIModel-MhnGV",
|
||||
"id": "OpenAIModel-zDrcf",
|
||||
"name": "text_output",
|
||||
"output_types": [
|
||||
"Message"
|
||||
|
|
@ -251,18 +257,18 @@
|
|||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "ChatOutput-dc1aC",
|
||||
"id": "ChatOutput-joWRG",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__OpenAIModel-MhnGV{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-MhnGVœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-dc1aC{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-dc1aCœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "OpenAIModel-MhnGV",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-MhnGVœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-dc1aC",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-dc1aCœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-OpenAIModel-zDrcf{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-zDrcfœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-joWRG{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-joWRGœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "OpenAIModel-zDrcf",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-zDrcfœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-joWRG",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-joWRGœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
|
|
@ -270,7 +276,7 @@
|
|||
"data": {
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"id": "Prompt-vnTcM",
|
||||
"id": "Prompt-oCyQS",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -401,10 +407,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 347,
|
||||
"id": "Prompt-vnTcM",
|
||||
"id": "Prompt-oCyQS",
|
||||
"measured": {
|
||||
"height": 347,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1818.6564755787988,
|
||||
|
|
@ -420,7 +426,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "ChatInput-JfaSH",
|
||||
"id": "ChatInput-hasDY",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -696,10 +702,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 234,
|
||||
"id": "ChatInput-JfaSH",
|
||||
"id": "ChatInput-hasDY",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 756.0075981758582,
|
||||
|
|
@ -717,7 +723,7 @@
|
|||
"data": {
|
||||
"description": "Display a chat message in the Playground.",
|
||||
"display_name": "Chat Output",
|
||||
"id": "ChatOutput-dc1aC",
|
||||
"id": "ChatOutput-joWRG",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -979,10 +985,10 @@
|
|||
},
|
||||
"dragging": true,
|
||||
"height": 234,
|
||||
"id": "ChatOutput-dc1aC",
|
||||
"id": "ChatOutput-joWRG",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 3235.4806463111895,
|
||||
|
|
@ -992,7 +998,7 @@
|
|||
"x": 3200.774558432761,
|
||||
"y": 853.9881404769172
|
||||
},
|
||||
"selected": true,
|
||||
"selected": false,
|
||||
"type": "genericNode",
|
||||
"width": 320
|
||||
},
|
||||
|
|
@ -1000,7 +1006,7 @@
|
|||
"data": {
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"id": "Prompt-QF5LF",
|
||||
"id": "Prompt-GxcHe",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -1155,10 +1161,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 433,
|
||||
"id": "Prompt-QF5LF",
|
||||
"id": "Prompt-GxcHe",
|
||||
"measured": {
|
||||
"height": 433,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 2504.138359606453,
|
||||
|
|
@ -1174,7 +1180,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-OmVXD",
|
||||
"id": "note-mVf0U",
|
||||
"node": {
|
||||
"description": "# Research Agent \n\nWelcome to the Research Agent! This flow helps you conduct in-depth research on various topics using AI-powered tools and analysis.\n\n## Instructions\n1. Enter Your Research Query\n - Type your research question or topic into the Chat Input node.\n - Be specific and clear about what you want to investigate.\n\n2. Generate Research Plan\n - The system will create a focused research plan based on your query.\n - This plan includes key search queries and priorities.\n\n3. Conduct Web Search\n - The Tavily AI Search tool will perform web searches using the generated queries.\n - It focuses on finding academic and reliable sources.\n\n4. Analyze and Synthesize\n - The AI agent will review the search results and create a comprehensive synthesis.\n - The report includes an executive summary, methodology, findings, and conclusions.\n\n5. Review the Output\n - Read the final report in the Chat Output node.\n - Use this information as a starting point for further research or decision-making.\n\nRemember: You can refine your initial query for more specific results! 🔍📊",
|
||||
"display_name": "",
|
||||
|
|
@ -1186,15 +1192,15 @@
|
|||
"type": "note"
|
||||
},
|
||||
"dragging": false,
|
||||
"height": 765,
|
||||
"id": "note-OmVXD",
|
||||
"height": 694,
|
||||
"id": "note-mVf0U",
|
||||
"measured": {
|
||||
"height": 765,
|
||||
"width": 328
|
||||
"height": 694,
|
||||
"width": 325
|
||||
},
|
||||
"position": {
|
||||
"x": 471.4335708918645,
|
||||
"y": -9.732869247334605
|
||||
"x": 504.2335190696667,
|
||||
"y": 41.80990646064032
|
||||
},
|
||||
"positionAbsolute": {
|
||||
"x": 471.4335708918645,
|
||||
|
|
@ -1207,13 +1213,13 @@
|
|||
"width": 600
|
||||
},
|
||||
"type": "noteNode",
|
||||
"width": 600
|
||||
"width": 324
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"description": "Define the agent's instructions, then enter a task to complete using tools.",
|
||||
"display_name": "Agent",
|
||||
"id": "Agent-yGw6Q",
|
||||
"id": "Agent-7qOlO",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -1362,7 +1368,7 @@
|
|||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "str",
|
||||
"value": "OPENAI_API_KEY"
|
||||
"value": ""
|
||||
},
|
||||
"code": {
|
||||
"advanced": true,
|
||||
|
|
@ -1775,10 +1781,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 658,
|
||||
"id": "Agent-yGw6Q",
|
||||
"id": "Agent-7qOlO",
|
||||
"measured": {
|
||||
"height": 658,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 2156.60686936856,
|
||||
|
|
@ -1796,7 +1802,7 @@
|
|||
"data": {
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"id": "Prompt-D14S9",
|
||||
"id": "Prompt-2yPE7",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -1902,10 +1908,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 260,
|
||||
"id": "Prompt-D14S9",
|
||||
"id": "Prompt-2yPE7",
|
||||
"measured": {
|
||||
"height": 260,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1102.6079408836365,
|
||||
|
|
@ -1923,7 +1929,7 @@
|
|||
"data": {
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"id": "Prompt-Lqvw5",
|
||||
"id": "Prompt-OoSJu",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
|
|
@ -2029,10 +2035,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 260,
|
||||
"id": "Prompt-Lqvw5",
|
||||
"id": "Prompt-OoSJu",
|
||||
"measured": {
|
||||
"height": 260,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 2498.9482347755306,
|
||||
|
|
@ -2048,7 +2054,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-0mAkP",
|
||||
"id": "note-0T0JR",
|
||||
"node": {
|
||||
"description": "# 🔑 Tavily AI Search Needs API Key\n\nYou can get 1000 searches/month free [here](https://tavily.com/) ",
|
||||
"display_name": "",
|
||||
|
|
@ -2061,10 +2067,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 325,
|
||||
"id": "note-0mAkP",
|
||||
"id": "note-0T0JR",
|
||||
"measured": {
|
||||
"height": 325,
|
||||
"width": 328
|
||||
"width": 326
|
||||
},
|
||||
"position": {
|
||||
"x": 1797.5781951055678,
|
||||
|
|
@ -2080,7 +2086,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "TavilySearchComponent-ChvwJ",
|
||||
"id": "TavilySearchComponent-oJz7N",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data",
|
||||
|
|
@ -2139,7 +2145,7 @@
|
|||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"load_from_db": true,
|
||||
"load_from_db": false,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
"placeholder": "",
|
||||
|
|
@ -2385,10 +2391,10 @@
|
|||
"type": "TavilySearchComponent"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "TavilySearchComponent-ChvwJ",
|
||||
"id": "TavilySearchComponent-oJz7N",
|
||||
"measured": {
|
||||
"height": 489,
|
||||
"width": 360
|
||||
"height": 435,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1802.928183797125,
|
||||
|
|
@ -2399,7 +2405,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "OpenAIModel-FVlqP",
|
||||
"id": "OpenAIModel-VcHpk",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"LanguageModel",
|
||||
|
|
@ -2486,7 +2492,7 @@
|
|||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "str",
|
||||
"value": "OPENAI_API_KEY"
|
||||
"value": ""
|
||||
},
|
||||
"code": {
|
||||
"advanced": true,
|
||||
|
|
@ -2731,10 +2737,10 @@
|
|||
"type": "OpenAIModel"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "OpenAIModel-FVlqP",
|
||||
"id": "OpenAIModel-VcHpk",
|
||||
"measured": {
|
||||
"height": 734,
|
||||
"width": 360
|
||||
"height": 653,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1455.1912046212385,
|
||||
|
|
@ -2745,7 +2751,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "OpenAIModel-MhnGV",
|
||||
"id": "OpenAIModel-zDrcf",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"LanguageModel",
|
||||
|
|
@ -2832,7 +2838,7 @@
|
|||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "str",
|
||||
"value": "OPENAI_API_KEY"
|
||||
"value": ""
|
||||
},
|
||||
"code": {
|
||||
"advanced": true,
|
||||
|
|
@ -3077,10 +3083,10 @@
|
|||
"type": "OpenAIModel"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "OpenAIModel-MhnGV",
|
||||
"id": "OpenAIModel-zDrcf",
|
||||
"measured": {
|
||||
"height": 734,
|
||||
"width": 360
|
||||
"height": 653,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 2869.8759720421745,
|
||||
|
|
@ -3091,9 +3097,9 @@
|
|||
}
|
||||
],
|
||||
"viewport": {
|
||||
"x": -1483.015971938532,
|
||||
"y": -267.7229964456226,
|
||||
"zoom": 0.7779614946685405
|
||||
"x": -135.40378221384628,
|
||||
"y": 346.1173837865683,
|
||||
"zoom": 0.42682994266054
|
||||
}
|
||||
},
|
||||
"description": "Agent that generates focused plans, conducts web searches, and synthesizes findings into comprehensive reports.",
|
||||
|
|
|
|||
|
|
@ -2,79 +2,73 @@
|
|||
"data": {
|
||||
"edges": [
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-QFfcl",
|
||||
"id": "Prompt-a6SIY",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "system_message",
|
||||
"id": "OpenAIModel-3mbCD",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "OpenAIModel-brPVM",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__Prompt-QFfcl{œdataTypeœ:œPromptœ,œidœ:œPrompt-QFfclœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-3mbCD{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-3mbCDœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-QFfcl",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-QFfclœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-3mbCD",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-3mbCDœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Prompt-a6SIY{œdataTypeœ:œPromptœ,œidœ:œPrompt-a6SIYœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-brPVM{œfieldNameœ:œsystem_messageœ,œidœ:œOpenAIModel-brPVMœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "Prompt-a6SIY",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-a6SIYœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-brPVM",
|
||||
"targetHandle": "{œfieldNameœ: œsystem_messageœ, œidœ: œOpenAIModel-brPVMœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-RpVoN",
|
||||
"id": "Prompt-jkCpO",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "OpenAIModel-3mbCD",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "OpenAIModel-brPVM",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__Prompt-RpVoN{œdataTypeœ:œPromptœ,œidœ:œPrompt-RpVoNœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-3mbCD{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-3mbCDœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-RpVoN",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-RpVoNœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-3mbCD",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-3mbCDœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Prompt-jkCpO{œdataTypeœ:œPromptœ,œidœ:œPrompt-jkCpOœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-OpenAIModel-brPVM{œfieldNameœ:œinput_valueœ,œidœ:œOpenAIModel-brPVMœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "Prompt-jkCpO",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-jkCpOœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "OpenAIModel-brPVM",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œOpenAIModel-brPVMœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "OpenAIModel",
|
||||
"id": "OpenAIModel-3mbCD",
|
||||
"id": "OpenAIModel-brPVM",
|
||||
"name": "text_output",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "ChatOutput-vBbvi",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "ChatOutput-oE2ic",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "xy-edge__OpenAIModel-3mbCD{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-3mbCDœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-vBbvi{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-vBbviœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "OpenAIModel-3mbCD",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-3mbCDœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-vBbvi",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-vBbviœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-OpenAIModel-brPVM{œdataTypeœ:œOpenAIModelœ,œidœ:œOpenAIModel-brPVMœ,œnameœ:œtext_outputœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-oE2ic{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-oE2icœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "OpenAIModel-brPVM",
|
||||
"sourceHandle": "{œdataTypeœ: œOpenAIModelœ, œidœ: œOpenAIModel-brPVMœ, œnameœ: œtext_outputœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-oE2ic",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-oE2icœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
|
|
@ -82,11 +76,9 @@
|
|||
"data": {
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"id": "Prompt-RpVoN",
|
||||
"id": "Prompt-jkCpO",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {
|
||||
|
|
@ -103,9 +95,7 @@
|
|||
"display_name": "Prompt",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"template"
|
||||
],
|
||||
"field_order": ["template"],
|
||||
"frozen": false,
|
||||
"icon": "prompts",
|
||||
"legacy": false,
|
||||
|
|
@ -156,10 +146,7 @@
|
|||
"fileTypes": [],
|
||||
"file_path": "",
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"input_types": ["Message", "Text"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -179,10 +166,7 @@
|
|||
"fileTypes": [],
|
||||
"file_path": "",
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"input_types": ["Message", "Text"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -202,10 +186,7 @@
|
|||
"fileTypes": [],
|
||||
"file_path": "",
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"input_types": ["Message", "Text"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -225,10 +206,7 @@
|
|||
"fileTypes": [],
|
||||
"file_path": "",
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"input_types": ["Message", "Text"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -248,10 +226,7 @@
|
|||
"fileTypes": [],
|
||||
"file_path": "",
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"input_types": ["Message", "Text"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -271,10 +246,7 @@
|
|||
"fileTypes": [],
|
||||
"file_path": "",
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"input_types": ["Message", "Text"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -310,9 +282,7 @@
|
|||
"display_name": "Tool Placeholder",
|
||||
"dynamic": false,
|
||||
"info": "A placeholder input for tool mode.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "tool_placeholder",
|
||||
|
|
@ -333,10 +303,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 779,
|
||||
"id": "Prompt-RpVoN",
|
||||
"id": "Prompt-jkCpO",
|
||||
"measured": {
|
||||
"height": 779,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 816.9328565352126,
|
||||
|
|
@ -352,7 +322,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-bzlUs",
|
||||
"id": "note-nssRq",
|
||||
"node": {
|
||||
"description": "# SEO Keyword Generator\nWelcome to the SEO Keywords Generator - an AI tool to create strategic keywords based on your product and audience profile!\n\n## Instructions\n\n1. **Fill Product Information**\n - Enter your product name and description\n - Keep it clear and specific\n - Highlight unique features and benefits\n\n2. **Define Pain Points**\n - List customer problems and challenges\n - Be specific about what frustrations they face\n - Include both practical and emotional pain points\n\n3. **Set Goals & Solutions**\n - Specify customer objectives\n - Detail how they currently solve problems\n - Outline desired outcomes\n\n4. **Target Audience Details**\n - Define demographics and characteristics\n - Include expertise level\n - Describe behavior patterns and preferences\n\n5. **Review Output**\n - Examine generated keywords\n - Check relevance and search intent\n - Use insights for SEO strategy planning\n\nRemember: The more detailed your input, the more targeted and effective your keywords will be! 🎯🔍✨",
|
||||
"display_name": "",
|
||||
|
|
@ -363,10 +333,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 607,
|
||||
"id": "note-bzlUs",
|
||||
"id": "note-nssRq",
|
||||
"measured": {
|
||||
"height": 607,
|
||||
"width": 328
|
||||
"height": 608,
|
||||
"width": 324
|
||||
},
|
||||
"position": {
|
||||
"x": 221.74248905040588,
|
||||
|
|
@ -380,20 +350,18 @@
|
|||
"selected": false,
|
||||
"style": {
|
||||
"height": 607,
|
||||
"width": 489
|
||||
"width": 324
|
||||
},
|
||||
"type": "noteNode",
|
||||
"width": 489
|
||||
"width": 324
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"id": "Prompt-QFfcl",
|
||||
"id": "Prompt-a6SIY",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {
|
||||
|
|
@ -403,9 +371,7 @@
|
|||
"display_name": "Prompt",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"template"
|
||||
],
|
||||
"field_order": ["template"],
|
||||
"frozen": false,
|
||||
"icon": "prompts",
|
||||
"legacy": false,
|
||||
|
|
@ -472,9 +438,7 @@
|
|||
"display_name": "Tool Placeholder",
|
||||
"dynamic": false,
|
||||
"info": "A placeholder input for tool mode.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "tool_placeholder",
|
||||
|
|
@ -495,10 +459,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 260,
|
||||
"id": "Prompt-QFfcl",
|
||||
"id": "Prompt-a6SIY",
|
||||
"measured": {
|
||||
"height": 260,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 813.5727530934735,
|
||||
|
|
@ -516,11 +480,9 @@
|
|||
"data": {
|
||||
"description": "Display a chat message in the Playground.",
|
||||
"display_name": "Chat Output",
|
||||
"id": "ChatOutput-vBbvi",
|
||||
"id": "ChatOutput-oE2ic",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -569,9 +531,7 @@
|
|||
"display_name": "Background Color",
|
||||
"dynamic": false,
|
||||
"info": "The background color of the icon.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "background_color",
|
||||
|
|
@ -591,9 +551,7 @@
|
|||
"display_name": "Icon",
|
||||
"dynamic": false,
|
||||
"info": "The icon of the message.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "chat_icon",
|
||||
|
|
@ -631,9 +589,7 @@
|
|||
"display_name": "Data Template",
|
||||
"dynamic": false,
|
||||
"info": "Template to convert Data to Text. If left empty, it will be dynamically set to the Data's text key.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "data_template",
|
||||
|
|
@ -653,9 +609,7 @@
|
|||
"display_name": "Text",
|
||||
"dynamic": false,
|
||||
"info": "Message to be passed as output.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "input_value",
|
||||
|
|
@ -676,10 +630,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Type of sender.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User"
|
||||
],
|
||||
"options": ["Machine", "User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -695,9 +646,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Name of the sender.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -717,9 +666,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -755,9 +702,7 @@
|
|||
"display_name": "Text Color",
|
||||
"dynamic": false,
|
||||
"info": "The text color of the name",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "text_color",
|
||||
|
|
@ -778,10 +723,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 234,
|
||||
"id": "ChatOutput-vBbvi",
|
||||
"id": "ChatOutput-oE2ic",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1598.2529634286327,
|
||||
|
|
@ -797,7 +742,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-BWTHt",
|
||||
"id": "note-aLkdy",
|
||||
"node": {
|
||||
"description": "## Make sure to add your OpenAI API key from [platform.openai.com](https://platform.openai.com). ",
|
||||
"display_name": "",
|
||||
|
|
@ -808,10 +753,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 325,
|
||||
"id": "note-BWTHt",
|
||||
"id": "note-aLkdy",
|
||||
"measured": {
|
||||
"height": 325,
|
||||
"width": 328
|
||||
"width": 326
|
||||
},
|
||||
"position": {
|
||||
"x": 1207.1996899547116,
|
||||
|
|
@ -827,12 +772,9 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "OpenAIModel-3mbCD",
|
||||
"id": "OpenAIModel-brPVM",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"LanguageModel",
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["LanguageModel", "Message"],
|
||||
"beta": false,
|
||||
"category": "models",
|
||||
"conditional_paths": [],
|
||||
|
|
@ -882,9 +824,7 @@
|
|||
"display_name": "Language Model",
|
||||
"method": "build_model",
|
||||
"name": "model_output",
|
||||
"required_inputs": [
|
||||
"api_key"
|
||||
],
|
||||
"required_inputs": ["api_key"],
|
||||
"selected": "LanguageModel",
|
||||
"tool_mode": true,
|
||||
"types": [
|
||||
|
|
@ -903,9 +843,7 @@
|
|||
"display_name": "OpenAI API Key",
|
||||
"dynamic": false,
|
||||
"info": "The OpenAI API Key to use for the OpenAI model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"load_from_db": true,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
|
|
@ -914,7 +852,7 @@
|
|||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "str",
|
||||
"value": "OPENAI_API_KEY"
|
||||
"value": ""
|
||||
},
|
||||
"code": {
|
||||
"advanced": true,
|
||||
|
|
@ -940,9 +878,7 @@
|
|||
"display_name": "Input",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -1106,9 +1042,7 @@
|
|||
"display_name": "System Message",
|
||||
"dynamic": false,
|
||||
"info": "System message to pass to the model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -1159,10 +1093,10 @@
|
|||
"type": "OpenAIModel"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "OpenAIModel-3mbCD",
|
||||
"id": "OpenAIModel-brPVM",
|
||||
"measured": {
|
||||
"height": 734,
|
||||
"width": 360
|
||||
"height": 653,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1211.6745177781336,
|
||||
|
|
@ -1186,8 +1120,5 @@
|
|||
"is_component": false,
|
||||
"last_tested_version": "1.0.19.post2",
|
||||
"name": "SEO Keyword Generator",
|
||||
"tags": [
|
||||
"chatbots",
|
||||
"assistants"
|
||||
]
|
||||
}
|
||||
"tags": ["chatbots", "assistants"]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,26 +7,22 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Agent",
|
||||
"id": "Agent-wKeIr",
|
||||
"id": "Agent-GgGua",
|
||||
"name": "response",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "ChatOutput-BabAw",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "ChatOutput-SplPb",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Agent-wKeIr{œdataTypeœ:œAgentœ,œidœ:œAgent-wKeIrœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-BabAw{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-BabAwœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Agent-wKeIr",
|
||||
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-wKeIrœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-BabAw",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-BabAwœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Agent-GgGua{œdataTypeœ:œAgentœ,œidœ:œAgent-GgGuaœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-SplPb{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-SplPbœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Agent-GgGua",
|
||||
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-GgGuaœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-SplPb",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-SplPbœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -34,52 +30,44 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Prompt",
|
||||
"id": "Prompt-TXNvz",
|
||||
"id": "Prompt-tqP9Q",
|
||||
"name": "prompt",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "Agent-wKeIr",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "Agent-GgGua",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Prompt-TXNvz{œdataTypeœ:œPromptœ,œidœ:œPrompt-TXNvzœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-Agent-wKeIr{œfieldNameœ:œinput_valueœ,œidœ:œAgent-wKeIrœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-TXNvz",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-TXNvzœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Agent-wKeIr",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-wKeIrœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"id": "reactflow__edge-Prompt-tqP9Q{œdataTypeœ:œPromptœ,œidœ:œPrompt-tqP9Qœ,œnameœ:œpromptœ,œoutput_typesœ:[œMessageœ]}-Agent-GgGua{œfieldNameœ:œinput_valueœ,œidœ:œAgent-GgGuaœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"source": "Prompt-tqP9Q",
|
||||
"sourceHandle": "{œdataTypeœ: œPromptœ, œidœ: œPrompt-tqP9Qœ, œnameœ: œpromptœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Agent-GgGua",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-GgGuaœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "CalculatorComponent",
|
||||
"id": "CalculatorComponent-btXJ9",
|
||||
"id": "CalculatorComponent-LyoFm",
|
||||
"name": "component_as_tool",
|
||||
"output_types": [
|
||||
"Tool"
|
||||
]
|
||||
"output_types": ["Tool"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "tools",
|
||||
"id": "Agent-wKeIr",
|
||||
"inputTypes": [
|
||||
"Tool"
|
||||
],
|
||||
"id": "Agent-GgGua",
|
||||
"inputTypes": ["Tool"],
|
||||
"type": "other"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-CalculatorComponent-btXJ9{œdataTypeœ:œCalculatorComponentœ,œidœ:œCalculatorComponent-btXJ9œ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-wKeIr{œfieldNameœ:œtoolsœ,œidœ:œAgent-wKeIrœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
|
||||
"source": "CalculatorComponent-btXJ9",
|
||||
"sourceHandle": "{œdataTypeœ: œCalculatorComponentœ, œidœ: œCalculatorComponent-btXJ9œ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
|
||||
"target": "Agent-wKeIr",
|
||||
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-wKeIrœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
|
||||
"id": "reactflow__edge-CalculatorComponent-LyoFm{œdataTypeœ:œCalculatorComponentœ,œidœ:œCalculatorComponent-LyoFmœ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-GgGua{œfieldNameœ:œtoolsœ,œidœ:œAgent-GgGuaœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
|
||||
"source": "CalculatorComponent-LyoFm",
|
||||
"sourceHandle": "{œdataTypeœ: œCalculatorComponentœ, œidœ: œCalculatorComponent-LyoFmœ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
|
||||
"target": "Agent-GgGua",
|
||||
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-GgGuaœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
|
|
@ -87,11 +75,9 @@
|
|||
"data": {
|
||||
"description": "Create a prompt template with dynamic variables.",
|
||||
"display_name": "Prompt",
|
||||
"id": "Prompt-TXNvz",
|
||||
"id": "Prompt-tqP9Q",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {
|
||||
|
|
@ -107,9 +93,7 @@
|
|||
"display_name": "Prompt",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"template"
|
||||
],
|
||||
"field_order": ["template"],
|
||||
"frozen": false,
|
||||
"icon": "prompts",
|
||||
"legacy": false,
|
||||
|
|
@ -160,10 +144,7 @@
|
|||
"fileTypes": [],
|
||||
"file_path": "",
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"input_types": ["Message", "Text"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -183,10 +164,7 @@
|
|||
"fileTypes": [],
|
||||
"file_path": "",
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"input_types": ["Message", "Text"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -206,10 +184,7 @@
|
|||
"fileTypes": [],
|
||||
"file_path": "",
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"input_types": ["Message", "Text"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -229,10 +204,7 @@
|
|||
"fileTypes": [],
|
||||
"file_path": "",
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"input_types": ["Message", "Text"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -252,10 +224,7 @@
|
|||
"fileTypes": [],
|
||||
"file_path": "",
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message",
|
||||
"Text"
|
||||
],
|
||||
"input_types": ["Message", "Text"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -291,9 +260,7 @@
|
|||
"display_name": "Tool Placeholder",
|
||||
"dynamic": false,
|
||||
"info": "A placeholder input for tool mode.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "tool_placeholder",
|
||||
|
|
@ -314,10 +281,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 693,
|
||||
"id": "Prompt-TXNvz",
|
||||
"id": "Prompt-tqP9Q",
|
||||
"measured": {
|
||||
"height": 693,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1349.861745038984,
|
||||
|
|
@ -335,11 +302,9 @@
|
|||
"data": {
|
||||
"description": "Display a chat message in the Playground.",
|
||||
"display_name": "Chat Output",
|
||||
"id": "ChatOutput-BabAw",
|
||||
"id": "ChatOutput-SplPb",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -388,9 +353,7 @@
|
|||
"display_name": "Background Color",
|
||||
"dynamic": false,
|
||||
"info": "The background color of the icon.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "background_color",
|
||||
|
|
@ -410,9 +373,7 @@
|
|||
"display_name": "Icon",
|
||||
"dynamic": false,
|
||||
"info": "The icon of the message.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "chat_icon",
|
||||
|
|
@ -450,9 +411,7 @@
|
|||
"display_name": "Data Template",
|
||||
"dynamic": false,
|
||||
"info": "Template to convert Data to Text. If left empty, it will be dynamically set to the Data's text key.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "data_template",
|
||||
|
|
@ -472,9 +431,7 @@
|
|||
"display_name": "Text",
|
||||
"dynamic": false,
|
||||
"info": "Message to be passed as output.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "input_value",
|
||||
|
|
@ -495,10 +452,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Type of sender.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User"
|
||||
],
|
||||
"options": ["Machine", "User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -514,9 +468,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Name of the sender.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -536,9 +488,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -574,9 +524,7 @@
|
|||
"display_name": "Text Color",
|
||||
"dynamic": false,
|
||||
"info": "The text color of the name",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "text_color",
|
||||
|
|
@ -597,10 +545,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 234,
|
||||
"id": "ChatOutput-BabAw",
|
||||
"id": "ChatOutput-SplPb",
|
||||
"measured": {
|
||||
"height": 234,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 2240.3625274769397,
|
||||
|
|
@ -616,7 +564,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-ux8AH",
|
||||
"id": "note-VL2VP",
|
||||
"node": {
|
||||
"description": "# SaaS Pricing Calculator\n\nWelcome to the SaaS Pricing Calculator! This flow helps you determine the optimal monthly subscription price for your software service.\n\n## Instructions\n\n1. Prepare Your Data\n - Gather information on monthly infrastructure costs\n - Calculate customer support expenses\n - Estimate continuous development costs\n - Decide on your desired profit margin\n - Determine the estimated number of subscribers\n\n2. Input Values\n - Enter the gathered data into the respective fields in the Prompt node\n - Double-check the accuracy of your inputs\n\n3. Run the Flow\n - Click the \"Run\" button to start the calculation process\n - The flow will use Chain-of-Thought prompting to guide the AI through the steps\n\n4. Review the Results\n - Examine the output in the Chat Output node\n - The result will show a breakdown of costs and the final subscription price\n\n5. Adjust and Refine\n - If needed, modify your inputs to explore different pricing scenarios\n - Re-run the flow to see how changes affect the final price\n\nRemember: Regularly update your costs and subscriber estimates to keep your pricing model accurate and competitive! 💼📊",
|
||||
"display_name": "",
|
||||
|
|
@ -627,10 +575,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 800,
|
||||
"id": "note-ux8AH",
|
||||
"id": "note-VL2VP",
|
||||
"measured": {
|
||||
"height": 800,
|
||||
"width": 328
|
||||
"width": 324
|
||||
},
|
||||
"position": {
|
||||
"x": 689.7659055360411,
|
||||
|
|
@ -641,23 +589,21 @@
|
|||
"y": 68.95847391680593
|
||||
},
|
||||
"resizing": false,
|
||||
"selected": false,
|
||||
"selected": true,
|
||||
"style": {
|
||||
"height": 800,
|
||||
"width": 600
|
||||
"width": 324
|
||||
},
|
||||
"type": "noteNode",
|
||||
"width": 600
|
||||
"width": 324
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"description": "Define the agent's instructions, then enter a task to complete using tools.",
|
||||
"display_name": "Agent",
|
||||
"id": "Agent-wKeIr",
|
||||
"id": "Agent-GgGua",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -739,9 +685,7 @@
|
|||
"display_name": "Agent Description [Deprecated]",
|
||||
"dynamic": false,
|
||||
"info": "The description of the agent. This is only used when in Tool Mode. Defaults to 'A helpful assistant with access to the following tools:' and tools are added dynamically. This feature is deprecated and will be removed in future versions.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -791,9 +735,7 @@
|
|||
"display_name": "OpenAI API Key",
|
||||
"dynamic": false,
|
||||
"info": "The OpenAI API Key to use for the OpenAI model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"load_from_db": true,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
|
|
@ -802,7 +744,7 @@
|
|||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "str",
|
||||
"value": "OPENAI_API_KEY"
|
||||
"value": ""
|
||||
},
|
||||
"code": {
|
||||
"advanced": true,
|
||||
|
|
@ -844,9 +786,7 @@
|
|||
"display_name": "Input",
|
||||
"dynamic": false,
|
||||
"info": "The input provided by the user for the agent to process.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "input_value",
|
||||
|
|
@ -920,9 +860,7 @@
|
|||
"display_name": "External Memory",
|
||||
"dynamic": false,
|
||||
"info": "Retrieve messages from an external memory. If empty, it will use the Langflow tables.",
|
||||
"input_types": [
|
||||
"Memory"
|
||||
],
|
||||
"input_types": ["Memory"],
|
||||
"list": false,
|
||||
"name": "memory",
|
||||
"placeholder": "",
|
||||
|
|
@ -1016,10 +954,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Order of the messages.",
|
||||
"name": "order",
|
||||
"options": [
|
||||
"Ascending",
|
||||
"Descending"
|
||||
],
|
||||
"options": ["Ascending", "Descending"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -1053,11 +988,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Filter by sender type.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User",
|
||||
"Machine and User"
|
||||
],
|
||||
"options": ["Machine", "User", "Machine and User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -1073,9 +1004,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Filter by sender name.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -1095,9 +1024,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -1117,9 +1044,7 @@
|
|||
"display_name": "Agent Instructions",
|
||||
"dynamic": false,
|
||||
"info": "System Prompt: Initial instructions and context provided to guide the agent's behavior.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -1156,9 +1081,7 @@
|
|||
"display_name": "Template",
|
||||
"dynamic": false,
|
||||
"info": "The template to use for formatting the data. It can contain the keys {text}, {sender} or any other key in the message data.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -1179,9 +1102,7 @@
|
|||
"display_name": "Tools",
|
||||
"dynamic": false,
|
||||
"info": "These are the tools that the agent can use to help with tasks.",
|
||||
"input_types": [
|
||||
"Tool"
|
||||
],
|
||||
"input_types": ["Tool"],
|
||||
"list": true,
|
||||
"name": "tools",
|
||||
"placeholder": "",
|
||||
|
|
@ -1215,10 +1136,10 @@
|
|||
},
|
||||
"dragging": false,
|
||||
"height": 650,
|
||||
"id": "Agent-wKeIr",
|
||||
"id": "Agent-GgGua",
|
||||
"measured": {
|
||||
"height": 650,
|
||||
"width": 360
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1819.2633856623966,
|
||||
|
|
@ -1228,17 +1149,15 @@
|
|||
"x": 1819.2633856623966,
|
||||
"y": 138.32023808479687
|
||||
},
|
||||
"selected": true,
|
||||
"selected": false,
|
||||
"type": "genericNode",
|
||||
"width": 320
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "CalculatorComponent-btXJ9",
|
||||
"id": "CalculatorComponent-LyoFm",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data"
|
||||
],
|
||||
"base_classes": ["Data"],
|
||||
"beta": false,
|
||||
"category": "tools",
|
||||
"conditional_paths": [],
|
||||
|
|
@ -1247,9 +1166,7 @@
|
|||
"display_name": "Calculator",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"expression"
|
||||
],
|
||||
"field_order": ["expression"],
|
||||
"frozen": false,
|
||||
"icon": "calculator",
|
||||
"key": "CalculatorComponent",
|
||||
|
|
@ -1267,9 +1184,7 @@
|
|||
"name": "component_as_tool",
|
||||
"required_inputs": null,
|
||||
"selected": "Tool",
|
||||
"types": [
|
||||
"Tool"
|
||||
],
|
||||
"types": ["Tool"],
|
||||
"value": "__UNDEFINED__"
|
||||
}
|
||||
],
|
||||
|
|
@ -1301,9 +1216,7 @@
|
|||
"display_name": "Expression",
|
||||
"dynamic": false,
|
||||
"info": "The arithmetic expression to evaluate (e.g., '4*4*(33/22)+12-20').",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -1343,10 +1256,7 @@
|
|||
"description": "Modify tool names and descriptions to help agents understand when to use each tool.",
|
||||
"field_parsers": {
|
||||
"commands": "commands",
|
||||
"name": [
|
||||
"snake_case",
|
||||
"no_blank"
|
||||
]
|
||||
"name": ["snake_case", "no_blank"]
|
||||
},
|
||||
"hide_options": true
|
||||
},
|
||||
|
|
@ -1397,9 +1307,7 @@
|
|||
{
|
||||
"description": "evaluate_expression() - Perform basic arithmetic operations on a given expression.",
|
||||
"name": "None-evaluate_expression",
|
||||
"tags": [
|
||||
"None-evaluate_expression"
|
||||
]
|
||||
"tags": ["None-evaluate_expression"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -1410,10 +1318,10 @@
|
|||
"type": "CalculatorComponent"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "CalculatorComponent-btXJ9",
|
||||
"id": "CalculatorComponent-LyoFm",
|
||||
"measured": {
|
||||
"height": 374,
|
||||
"width": 360
|
||||
"height": 333,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1350.9477037257504,
|
||||
|
|
@ -1424,9 +1332,9 @@
|
|||
}
|
||||
],
|
||||
"viewport": {
|
||||
"x": -432.45261318505345,
|
||||
"y": 74.8182374148081,
|
||||
"zoom": 0.7507017664074155
|
||||
"x": -419.5792282920602,
|
||||
"y": 250.7080185506556,
|
||||
"zoom": 0.7037132543294129
|
||||
}
|
||||
},
|
||||
"description": "Calculate SaaS subscription price based on costs, profit margin, and subscribers using step-by-step method and Chain-of-Thought prompting. ",
|
||||
|
|
@ -1437,8 +1345,5 @@
|
|||
"is_component": false,
|
||||
"last_tested_version": "1.1.1",
|
||||
"name": "SaaS Pricing",
|
||||
"tags": [
|
||||
"agents",
|
||||
"assistants"
|
||||
]
|
||||
}
|
||||
"tags": ["agents", "assistants"]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,27 +7,23 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "ChatInput",
|
||||
"id": "ChatInput-Kdh0W",
|
||||
"id": "ChatInput-vSKY8",
|
||||
"name": "message",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "Agent-3NhNI",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "Agent-EPjLx",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-ChatInput-Kdh0W{œdataTypeœ:œChatInputœ,œidœ:œChatInput-Kdh0Wœ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-Agent-3NhNI{œfieldNameœ:œinput_valueœ,œidœ:œAgent-3NhNIœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"id": "reactflow__edge-ChatInput-vSKY8{œdataTypeœ:œChatInputœ,œidœ:œChatInput-vSKY8œ,œnameœ:œmessageœ,œoutput_typesœ:[œMessageœ]}-Agent-EPjLx{œfieldNameœ:œinput_valueœ,œidœ:œAgent-EPjLxœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "ChatInput-Kdh0W",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-Kdh0Wœ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Agent-3NhNI",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-3NhNIœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"source": "ChatInput-vSKY8",
|
||||
"sourceHandle": "{œdataTypeœ: œChatInputœ, œidœ: œChatInput-vSKY8œ, œnameœ: œmessageœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "Agent-EPjLx",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œAgent-EPjLxœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"animated": false,
|
||||
|
|
@ -35,79 +31,67 @@
|
|||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "Agent",
|
||||
"id": "Agent-3NhNI",
|
||||
"id": "Agent-EPjLx",
|
||||
"name": "response",
|
||||
"output_types": [
|
||||
"Message"
|
||||
]
|
||||
"output_types": ["Message"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "input_value",
|
||||
"id": "ChatOutput-SzD3j",
|
||||
"inputTypes": [
|
||||
"Message"
|
||||
],
|
||||
"id": "ChatOutput-x6tZi",
|
||||
"inputTypes": ["Message"],
|
||||
"type": "str"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-Agent-3NhNI{œdataTypeœ:œAgentœ,œidœ:œAgent-3NhNIœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-SzD3j{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-SzD3jœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"id": "reactflow__edge-Agent-EPjLx{œdataTypeœ:œAgentœ,œidœ:œAgent-EPjLxœ,œnameœ:œresponseœ,œoutput_typesœ:[œMessageœ]}-ChatOutput-x6tZi{œfieldNameœ:œinput_valueœ,œidœ:œChatOutput-x6tZiœ,œinputTypesœ:[œMessageœ],œtypeœ:œstrœ}",
|
||||
"selected": false,
|
||||
"source": "Agent-3NhNI",
|
||||
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-3NhNIœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-SzD3j",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-SzD3jœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
"source": "Agent-EPjLx",
|
||||
"sourceHandle": "{œdataTypeœ: œAgentœ, œidœ: œAgent-EPjLxœ, œnameœ: œresponseœ, œoutput_typesœ: [œMessageœ]}",
|
||||
"target": "ChatOutput-x6tZi",
|
||||
"targetHandle": "{œfieldNameœ: œinput_valueœ, œidœ: œChatOutput-x6tZiœ, œinputTypesœ: [œMessageœ], œtypeœ: œstrœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "CalculatorComponent",
|
||||
"id": "CalculatorComponent-F89Ck",
|
||||
"id": "CalculatorComponent-zxpIu",
|
||||
"name": "component_as_tool",
|
||||
"output_types": [
|
||||
"Tool"
|
||||
]
|
||||
"output_types": ["Tool"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "tools",
|
||||
"id": "Agent-3NhNI",
|
||||
"inputTypes": [
|
||||
"Tool"
|
||||
],
|
||||
"id": "Agent-EPjLx",
|
||||
"inputTypes": ["Tool"],
|
||||
"type": "other"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-CalculatorComponent-F89Ck{œdataTypeœ:œCalculatorComponentœ,œidœ:œCalculatorComponent-F89Ckœ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-3NhNI{œfieldNameœ:œtoolsœ,œidœ:œAgent-3NhNIœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
|
||||
"source": "CalculatorComponent-F89Ck",
|
||||
"sourceHandle": "{œdataTypeœ: œCalculatorComponentœ, œidœ: œCalculatorComponent-F89Ckœ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
|
||||
"target": "Agent-3NhNI",
|
||||
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-3NhNIœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
|
||||
"id": "reactflow__edge-CalculatorComponent-zxpIu{œdataTypeœ:œCalculatorComponentœ,œidœ:œCalculatorComponent-zxpIuœ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-EPjLx{œfieldNameœ:œtoolsœ,œidœ:œAgent-EPjLxœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
|
||||
"source": "CalculatorComponent-zxpIu",
|
||||
"sourceHandle": "{œdataTypeœ: œCalculatorComponentœ, œidœ: œCalculatorComponent-zxpIuœ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
|
||||
"target": "Agent-EPjLx",
|
||||
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-EPjLxœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
|
||||
},
|
||||
{
|
||||
"className": "",
|
||||
"data": {
|
||||
"sourceHandle": {
|
||||
"dataType": "URL",
|
||||
"id": "URL-4Q2PI",
|
||||
"id": "URL-yM3pY",
|
||||
"name": "component_as_tool",
|
||||
"output_types": [
|
||||
"Tool"
|
||||
]
|
||||
"output_types": ["Tool"]
|
||||
},
|
||||
"targetHandle": {
|
||||
"fieldName": "tools",
|
||||
"id": "Agent-3NhNI",
|
||||
"inputTypes": [
|
||||
"Tool"
|
||||
],
|
||||
"id": "Agent-EPjLx",
|
||||
"inputTypes": ["Tool"],
|
||||
"type": "other"
|
||||
}
|
||||
},
|
||||
"id": "reactflow__edge-URL-4Q2PI{œdataTypeœ:œURLœ,œidœ:œURL-4Q2PIœ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-3NhNI{œfieldNameœ:œtoolsœ,œidœ:œAgent-3NhNIœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
|
||||
"source": "URL-4Q2PI",
|
||||
"sourceHandle": "{œdataTypeœ: œURLœ, œidœ: œURL-4Q2PIœ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
|
||||
"target": "Agent-3NhNI",
|
||||
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-3NhNIœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
|
||||
"id": "reactflow__edge-URL-yM3pY{œdataTypeœ:œURLœ,œidœ:œURL-yM3pYœ,œnameœ:œcomponent_as_toolœ,œoutput_typesœ:[œToolœ]}-Agent-EPjLx{œfieldNameœ:œtoolsœ,œidœ:œAgent-EPjLxœ,œinputTypesœ:[œToolœ],œtypeœ:œotherœ}",
|
||||
"source": "URL-yM3pY",
|
||||
"sourceHandle": "{œdataTypeœ: œURLœ, œidœ: œURL-yM3pYœ, œnameœ: œcomponent_as_toolœ, œoutput_typesœ: [œToolœ]}",
|
||||
"target": "Agent-EPjLx",
|
||||
"targetHandle": "{œfieldNameœ: œtoolsœ, œidœ: œAgent-EPjLxœ, œinputTypesœ: [œToolœ], œtypeœ: œotherœ}"
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
|
|
@ -115,11 +99,9 @@
|
|||
"data": {
|
||||
"description": "Define the agent's instructions, then enter a task to complete using tools.",
|
||||
"display_name": "Agent",
|
||||
"id": "Agent-3NhNI",
|
||||
"id": "Agent-EPjLx",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -201,9 +183,7 @@
|
|||
"display_name": "Agent Description [Deprecated]",
|
||||
"dynamic": false,
|
||||
"info": "The description of the agent. This is only used when in Tool Mode. Defaults to 'A helpful assistant with access to the following tools:' and tools are added dynamically. This feature is deprecated and will be removed in future versions.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -253,9 +233,7 @@
|
|||
"display_name": "OpenAI API Key",
|
||||
"dynamic": false,
|
||||
"info": "The OpenAI API Key to use for the OpenAI model.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"load_from_db": true,
|
||||
"name": "api_key",
|
||||
"password": true,
|
||||
|
|
@ -264,7 +242,7 @@
|
|||
"show": true,
|
||||
"title_case": false,
|
||||
"type": "str",
|
||||
"value": "OPENAI_API_KEY"
|
||||
"value": ""
|
||||
},
|
||||
"code": {
|
||||
"advanced": true,
|
||||
|
|
@ -306,9 +284,7 @@
|
|||
"display_name": "Input",
|
||||
"dynamic": false,
|
||||
"info": "The input provided by the user for the agent to process.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "input_value",
|
||||
|
|
@ -382,9 +358,7 @@
|
|||
"display_name": "External Memory",
|
||||
"dynamic": false,
|
||||
"info": "Retrieve messages from an external memory. If empty, it will use the Langflow tables.",
|
||||
"input_types": [
|
||||
"Memory"
|
||||
],
|
||||
"input_types": ["Memory"],
|
||||
"list": false,
|
||||
"name": "memory",
|
||||
"placeholder": "",
|
||||
|
|
@ -478,10 +452,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Order of the messages.",
|
||||
"name": "order",
|
||||
"options": [
|
||||
"Ascending",
|
||||
"Descending"
|
||||
],
|
||||
"options": ["Ascending", "Descending"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -515,11 +486,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Filter by sender type.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User",
|
||||
"Machine and User"
|
||||
],
|
||||
"options": ["Machine", "User", "Machine and User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -535,9 +502,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Filter by sender name.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -557,9 +522,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -579,9 +542,7 @@
|
|||
"display_name": "Agent Instructions",
|
||||
"dynamic": false,
|
||||
"info": "System Prompt: Initial instructions and context provided to guide the agent's behavior.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -618,9 +579,7 @@
|
|||
"display_name": "Template",
|
||||
"dynamic": false,
|
||||
"info": "The template to use for formatting the data. It can contain the keys {text}, {sender} or any other key in the message data.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"multiline": true,
|
||||
|
|
@ -641,9 +600,7 @@
|
|||
"display_name": "Tools",
|
||||
"dynamic": false,
|
||||
"info": "These are the tools that the agent can use to help with tasks.",
|
||||
"input_types": [
|
||||
"Tool"
|
||||
],
|
||||
"input_types": ["Tool"],
|
||||
"list": true,
|
||||
"name": "tools",
|
||||
"placeholder": "",
|
||||
|
|
@ -676,25 +633,23 @@
|
|||
"type": "Agent"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "Agent-3NhNI",
|
||||
"id": "Agent-EPjLx",
|
||||
"measured": {
|
||||
"height": 698,
|
||||
"width": 360
|
||||
"height": 621,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1652.2479633316434,
|
||||
"y": 297.9085084144251
|
||||
},
|
||||
"selected": true,
|
||||
"selected": false,
|
||||
"type": "genericNode"
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "ChatInput-Kdh0W",
|
||||
"id": "ChatInput-vSKY8",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -743,9 +698,7 @@
|
|||
"display_name": "Background Color",
|
||||
"dynamic": false,
|
||||
"info": "The background color of the icon.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "background_color",
|
||||
|
|
@ -765,9 +718,7 @@
|
|||
"display_name": "Icon",
|
||||
"dynamic": false,
|
||||
"info": "The icon of the message.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "chat_icon",
|
||||
|
|
@ -870,10 +821,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Type of sender.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User"
|
||||
],
|
||||
"options": ["Machine", "User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -889,9 +837,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Name of the sender.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -911,9 +857,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -949,9 +893,7 @@
|
|||
"display_name": "Text Color",
|
||||
"dynamic": false,
|
||||
"info": "The text color of the name",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "text_color",
|
||||
|
|
@ -971,10 +913,10 @@
|
|||
"type": "ChatInput"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "ChatInput-Kdh0W",
|
||||
"id": "ChatInput-vSKY8",
|
||||
"measured": {
|
||||
"height": 257,
|
||||
"width": 360
|
||||
"height": 229,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1241.9566260691947,
|
||||
|
|
@ -987,11 +929,9 @@
|
|||
"data": {
|
||||
"description": "Display a chat message in the Playground.",
|
||||
"display_name": "Chat Output",
|
||||
"id": "ChatOutput-SzD3j",
|
||||
"id": "ChatOutput-x6tZi",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -1040,9 +980,7 @@
|
|||
"display_name": "Background Color",
|
||||
"dynamic": false,
|
||||
"info": "The background color of the icon.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "background_color",
|
||||
|
|
@ -1062,9 +1000,7 @@
|
|||
"display_name": "Icon",
|
||||
"dynamic": false,
|
||||
"info": "The icon of the message.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "chat_icon",
|
||||
|
|
@ -1102,9 +1038,7 @@
|
|||
"display_name": "Data Template",
|
||||
"dynamic": false,
|
||||
"info": "Template to convert Data to Text. If left empty, it will be dynamically set to the Data's text key.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "data_template",
|
||||
|
|
@ -1124,9 +1058,7 @@
|
|||
"display_name": "Text",
|
||||
"dynamic": false,
|
||||
"info": "Message to be passed as output.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "input_value",
|
||||
|
|
@ -1147,10 +1079,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Type of sender.",
|
||||
"name": "sender",
|
||||
"options": [
|
||||
"Machine",
|
||||
"User"
|
||||
],
|
||||
"options": ["Machine", "User"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -1166,9 +1095,7 @@
|
|||
"display_name": "Sender Name",
|
||||
"dynamic": false,
|
||||
"info": "Name of the sender.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "sender_name",
|
||||
|
|
@ -1188,9 +1115,7 @@
|
|||
"display_name": "Session ID",
|
||||
"dynamic": false,
|
||||
"info": "The session ID of the chat. If empty, the current session ID parameter will be used.",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "session_id",
|
||||
|
|
@ -1226,9 +1151,7 @@
|
|||
"display_name": "Text Color",
|
||||
"dynamic": false,
|
||||
"info": "The text color of the name",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"load_from_db": false,
|
||||
"name": "text_color",
|
||||
|
|
@ -1247,10 +1170,10 @@
|
|||
},
|
||||
"type": "ChatOutput"
|
||||
},
|
||||
"id": "ChatOutput-SzD3j",
|
||||
"id": "ChatOutput-x6tZi",
|
||||
"measured": {
|
||||
"height": 257,
|
||||
"width": 360
|
||||
"height": 229,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 2029.726227044409,
|
||||
|
|
@ -1263,13 +1186,9 @@
|
|||
"data": {
|
||||
"description": "Load and retrive data from specified URLs.",
|
||||
"display_name": "URL",
|
||||
"id": "URL-4Q2PI",
|
||||
"id": "URL-yM3pY",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data",
|
||||
"DataFrame",
|
||||
"Message"
|
||||
],
|
||||
"base_classes": ["Data", "DataFrame", "Message"],
|
||||
"beta": false,
|
||||
"conditional_paths": [],
|
||||
"custom_fields": {},
|
||||
|
|
@ -1277,10 +1196,7 @@
|
|||
"display_name": "URL",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"urls",
|
||||
"format"
|
||||
],
|
||||
"field_order": ["urls", "format"],
|
||||
"frozen": false,
|
||||
"icon": "layout-template",
|
||||
"legacy": false,
|
||||
|
|
@ -1296,9 +1212,7 @@
|
|||
"name": "component_as_tool",
|
||||
"required_inputs": null,
|
||||
"selected": "Tool",
|
||||
"types": [
|
||||
"Tool"
|
||||
],
|
||||
"types": ["Tool"],
|
||||
"value": "__UNDEFINED__"
|
||||
}
|
||||
],
|
||||
|
|
@ -1331,10 +1245,7 @@
|
|||
"dynamic": false,
|
||||
"info": "Output Format. Use 'Text' to extract the text from the HTML or 'Raw HTML' for the raw HTML content.",
|
||||
"name": "format",
|
||||
"options": [
|
||||
"Text",
|
||||
"Raw HTML"
|
||||
],
|
||||
"options": ["Text", "Raw HTML"],
|
||||
"placeholder": "",
|
||||
"required": false,
|
||||
"show": true,
|
||||
|
|
@ -1369,10 +1280,7 @@
|
|||
"description": "Modify tool names and descriptions to help agents understand when to use each tool.",
|
||||
"field_parsers": {
|
||||
"commands": "commands",
|
||||
"name": [
|
||||
"snake_case",
|
||||
"no_blank"
|
||||
]
|
||||
"name": ["snake_case", "no_blank"]
|
||||
},
|
||||
"hide_options": true
|
||||
},
|
||||
|
|
@ -1423,23 +1331,17 @@
|
|||
{
|
||||
"description": "fetch_content() - Load and retrive data from specified URLs.",
|
||||
"name": "URL-fetch_content",
|
||||
"tags": [
|
||||
"URL-fetch_content"
|
||||
]
|
||||
"tags": ["URL-fetch_content"]
|
||||
},
|
||||
{
|
||||
"description": "fetch_content_text() - Load and retrive data from specified URLs.",
|
||||
"name": "URL-fetch_content_text",
|
||||
"tags": [
|
||||
"URL-fetch_content_text"
|
||||
]
|
||||
"tags": ["URL-fetch_content_text"]
|
||||
},
|
||||
{
|
||||
"description": "as_dataframe() - Load and retrive data from specified URLs.",
|
||||
"name": "URL-as_dataframe",
|
||||
"tags": [
|
||||
"URL-as_dataframe"
|
||||
]
|
||||
"tags": ["URL-as_dataframe"]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -1449,9 +1351,7 @@
|
|||
"display_name": "URLs",
|
||||
"dynamic": false,
|
||||
"info": "",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": true,
|
||||
"list_add_label": "Add URL",
|
||||
"load_from_db": false,
|
||||
|
|
@ -1472,10 +1372,10 @@
|
|||
"type": "URL"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "URL-4Q2PI",
|
||||
"id": "URL-yM3pY",
|
||||
"measured": {
|
||||
"height": 453,
|
||||
"width": 360
|
||||
"height": 403,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1225.8773509111968,
|
||||
|
|
@ -1486,7 +1386,7 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-MeseW",
|
||||
"id": "note-Zo71g",
|
||||
"node": {
|
||||
"description": "# 📖 README\nRun an Agent with URL and Calculator tools available for its use. \nThe Agent decides which tool to use to solve a problem.\n## Quick start\n\n1. Add your OpenAI API key to the Agent.\n2. Open the Playground and chat with the Agent. Request some information about a recipe, and then ask to add two numbers together. In the responses, the Agent will use different tools to solve different problems.\n\n## Next steps\nConnect more tools to the Agent to create your perfect assistant.\n\nFor more, see the [Langflow docs](https://docs.langflow.org/agents-tool-calling-agent-component).",
|
||||
"display_name": "",
|
||||
|
|
@ -1498,21 +1398,21 @@
|
|||
"type": "note"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "note-MeseW",
|
||||
"id": "note-Zo71g",
|
||||
"measured": {
|
||||
"height": 328,
|
||||
"width": 328
|
||||
"height": 324,
|
||||
"width": 324
|
||||
},
|
||||
"position": {
|
||||
"x": 775.5268622081468,
|
||||
"y": 27.927425537464444
|
||||
},
|
||||
"selected": false,
|
||||
"selected": true,
|
||||
"type": "noteNode"
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "note-yfpyo",
|
||||
"id": "note-enlN0",
|
||||
"node": {
|
||||
"description": "### 💡 Add your OpenAI API key here👇",
|
||||
"display_name": "",
|
||||
|
|
@ -1523,10 +1423,10 @@
|
|||
},
|
||||
"type": "note"
|
||||
},
|
||||
"id": "note-yfpyo",
|
||||
"id": "note-enlN0",
|
||||
"measured": {
|
||||
"height": 326,
|
||||
"width": 326
|
||||
"height": 698,
|
||||
"width": 324
|
||||
},
|
||||
"position": {
|
||||
"x": 1648.6876745095624,
|
||||
|
|
@ -1537,11 +1437,9 @@
|
|||
},
|
||||
{
|
||||
"data": {
|
||||
"id": "CalculatorComponent-F89Ck",
|
||||
"id": "CalculatorComponent-zxpIu",
|
||||
"node": {
|
||||
"base_classes": [
|
||||
"Data"
|
||||
],
|
||||
"base_classes": ["Data"],
|
||||
"beta": false,
|
||||
"category": "tools",
|
||||
"conditional_paths": [],
|
||||
|
|
@ -1550,9 +1448,7 @@
|
|||
"display_name": "Calculator",
|
||||
"documentation": "",
|
||||
"edited": false,
|
||||
"field_order": [
|
||||
"expression"
|
||||
],
|
||||
"field_order": ["expression"],
|
||||
"frozen": false,
|
||||
"icon": "calculator",
|
||||
"key": "CalculatorComponent",
|
||||
|
|
@ -1571,9 +1467,7 @@
|
|||
"name": "component_as_tool",
|
||||
"required_inputs": null,
|
||||
"selected": "Tool",
|
||||
"types": [
|
||||
"Tool"
|
||||
],
|
||||
"types": ["Tool"],
|
||||
"value": "__UNDEFINED__"
|
||||
}
|
||||
],
|
||||
|
|
@ -1605,9 +1499,7 @@
|
|||
"display_name": "Expression",
|
||||
"dynamic": false,
|
||||
"info": "The arithmetic expression to evaluate (e.g., '4*4*(33/22)+12-20').",
|
||||
"input_types": [
|
||||
"Message"
|
||||
],
|
||||
"input_types": ["Message"],
|
||||
"list": false,
|
||||
"list_add_label": "Add More",
|
||||
"load_from_db": false,
|
||||
|
|
@ -1647,10 +1539,7 @@
|
|||
"description": "Modify tool names and descriptions to help agents understand when to use each tool.",
|
||||
"field_parsers": {
|
||||
"commands": "commands",
|
||||
"name": [
|
||||
"snake_case",
|
||||
"no_blank"
|
||||
]
|
||||
"name": ["snake_case", "no_blank"]
|
||||
},
|
||||
"hide_options": true
|
||||
},
|
||||
|
|
@ -1701,9 +1590,7 @@
|
|||
{
|
||||
"description": "evaluate_expression() - Perform basic arithmetic operations on a given expression.",
|
||||
"name": "None-evaluate_expression",
|
||||
"tags": [
|
||||
"None-evaluate_expression"
|
||||
]
|
||||
"tags": ["None-evaluate_expression"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -1714,10 +1601,10 @@
|
|||
"type": "CalculatorComponent"
|
||||
},
|
||||
"dragging": false,
|
||||
"id": "CalculatorComponent-F89Ck",
|
||||
"id": "CalculatorComponent-zxpIu",
|
||||
"measured": {
|
||||
"height": 374,
|
||||
"width": 360
|
||||
"height": 333,
|
||||
"width": 320
|
||||
},
|
||||
"position": {
|
||||
"x": 1233.166256931297,
|
||||
|
|
@ -1728,9 +1615,9 @@
|
|||
}
|
||||
],
|
||||
"viewport": {
|
||||
"x": -311.5761975342741,
|
||||
"y": 21.53149314357762,
|
||||
"zoom": 0.7039413065053529
|
||||
"x": 528.5325055091846,
|
||||
"y": 51.2172319875898,
|
||||
"zoom": 0.12508906569071757
|
||||
}
|
||||
},
|
||||
"description": "A simple but powerful starter agent.",
|
||||
|
|
@ -1739,8 +1626,5 @@
|
|||
"is_component": false,
|
||||
"last_tested_version": "1.1.1",
|
||||
"name": "Simple Agent",
|
||||
"tags": [
|
||||
"assistants",
|
||||
"agents"
|
||||
]
|
||||
}
|
||||
"tags": ["assistants", "agents"]
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -4,12 +4,20 @@ import {
|
|||
NOTE_NODE_MIN_WIDTH,
|
||||
} from "@/constants/constants";
|
||||
import { useAlternate } from "@/shared/hooks/use-alternate";
|
||||
import useFlowStore from "@/stores/flowStore";
|
||||
import { NoteDataType } from "@/types/flow";
|
||||
import { cn } from "@/utils/utils";
|
||||
import { NodeResizer } from "@xyflow/react";
|
||||
import { debounce } from "lodash";
|
||||
import { useEffect, useMemo, useRef, useState } from "react";
|
||||
import NodeDescription from "../GenericNode/components/NodeDescription";
|
||||
import NoteToolbarComponent from "./NoteToolbarComponent";
|
||||
|
||||
const NOTE_NODE_PADDING = 25;
|
||||
const CHAR_LIMIT = 2500;
|
||||
const DEFAULT_WIDTH = 324;
|
||||
const DEFAULT_HEIGHT = 324;
|
||||
|
||||
function NoteNode({
|
||||
data,
|
||||
selected,
|
||||
|
|
@ -22,16 +30,68 @@ function NoteNode({
|
|||
(key) => key === data.node?.template.backgroundColor,
|
||||
) ?? Object.keys(COLOR_OPTIONS)[0];
|
||||
const nodeDiv = useRef<HTMLDivElement>(null);
|
||||
const [size, setSize] = useState({ width: 0, height: 0 });
|
||||
//tricky to start the description with the right size
|
||||
const [size, setSize] = useState({
|
||||
width: DEFAULT_WIDTH - NOTE_NODE_PADDING,
|
||||
height: DEFAULT_HEIGHT - NOTE_NODE_PADDING,
|
||||
});
|
||||
const [resizedNote, setResizedNote] = useState(false);
|
||||
const currentFlow = useFlowStore((state) => state.currentFlow);
|
||||
const setNode = useFlowStore((state) => state.setNode);
|
||||
const [isResizing, setIsResizing] = useState(false);
|
||||
|
||||
const nodeData = useMemo(
|
||||
() => currentFlow?.data?.nodes.find((node) => node.id === data.id),
|
||||
[currentFlow, data.id],
|
||||
);
|
||||
|
||||
const nodeDataWidth = useMemo(
|
||||
() => nodeData?.width ?? DEFAULT_WIDTH,
|
||||
[nodeData?.width],
|
||||
);
|
||||
const nodeDataHeight = useMemo(
|
||||
() => nodeData?.height ?? DEFAULT_HEIGHT,
|
||||
[nodeData?.height],
|
||||
);
|
||||
|
||||
const dataId = useMemo(() => data.id, [data.id]);
|
||||
const dataDescription = useMemo(
|
||||
() => data.node?.description,
|
||||
[data.node?.description],
|
||||
);
|
||||
|
||||
const debouncedResize = useMemo(
|
||||
() =>
|
||||
debounce((width: number, height: number) => {
|
||||
setSize({
|
||||
width: width - NOTE_NODE_PADDING,
|
||||
height: height - NOTE_NODE_PADDING,
|
||||
});
|
||||
setNode(data.id, (node) => {
|
||||
return {
|
||||
...node,
|
||||
width: width,
|
||||
height: height,
|
||||
};
|
||||
});
|
||||
}, 5),
|
||||
[],
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
if (nodeDiv.current) {
|
||||
if (nodeData && !resizedNote && nodeDataWidth > 0 && nodeDataHeight > 0) {
|
||||
setSize({
|
||||
width: nodeDiv.current.offsetWidth - 25,
|
||||
height: nodeDiv.current.offsetHeight - 25,
|
||||
width: nodeDataWidth - NOTE_NODE_PADDING,
|
||||
height: nodeDataHeight - NOTE_NODE_PADDING,
|
||||
});
|
||||
} else if (!nodeData && nodeDiv.current) {
|
||||
const currentWidth = nodeDiv.current.offsetWidth || DEFAULT_WIDTH;
|
||||
const currentHeight = nodeDiv.current.offsetHeight || DEFAULT_HEIGHT;
|
||||
setSize({
|
||||
width: Math.max(currentWidth, DEFAULT_WIDTH) - NOTE_NODE_PADDING,
|
||||
height: Math.max(currentHeight, DEFAULT_HEIGHT) - NOTE_NODE_PADDING,
|
||||
});
|
||||
}
|
||||
}, []);
|
||||
}, [nodeData, nodeDataWidth, nodeDataHeight, resizedNote]);
|
||||
|
||||
const [editNameDescription, set] = useAlternate(false);
|
||||
|
||||
|
|
@ -49,25 +109,35 @@ function NoteNode({
|
|||
return (
|
||||
<>
|
||||
<NodeResizer
|
||||
minWidth={NOTE_NODE_MIN_WIDTH}
|
||||
minHeight={NOTE_NODE_MIN_HEIGHT}
|
||||
minWidth={Math.max(DEFAULT_WIDTH, NOTE_NODE_MIN_WIDTH)}
|
||||
minHeight={Math.max(DEFAULT_HEIGHT, NOTE_NODE_MIN_HEIGHT)}
|
||||
onResize={(_, params) => {
|
||||
const { width, height } = params;
|
||||
setSize({ width: width - 25, height: height - 25 });
|
||||
debouncedResize(width, height);
|
||||
}}
|
||||
isVisible={selected}
|
||||
lineClassName="!border !border-muted-foreground"
|
||||
onResizeStart={() => {
|
||||
setResizedNote(true);
|
||||
setIsResizing(true);
|
||||
}}
|
||||
onResizeEnd={() => {
|
||||
setIsResizing(false);
|
||||
debouncedResize.flush();
|
||||
}}
|
||||
/>
|
||||
<div
|
||||
data-testid="note_node"
|
||||
style={{
|
||||
minWidth: NOTE_NODE_MIN_WIDTH,
|
||||
minHeight: NOTE_NODE_MIN_HEIGHT,
|
||||
minWidth: Math.max(DEFAULT_WIDTH, NOTE_NODE_MIN_WIDTH),
|
||||
minHeight: Math.max(DEFAULT_HEIGHT, NOTE_NODE_MIN_HEIGHT),
|
||||
backgroundColor: COLOR_OPTIONS[bgColor] ?? "#00000000",
|
||||
}}
|
||||
ref={nodeDiv}
|
||||
className={cn(
|
||||
"relative flex h-full w-full flex-col gap-3 rounded-xl p-3 transition-all",
|
||||
"relative flex h-full w-full flex-col gap-3 rounded-xl p-3",
|
||||
"transition-all duration-200 ease-in-out",
|
||||
!isResizing && "transition-transform",
|
||||
COLOR_OPTIONS[bgColor] !== null &&
|
||||
`border ${!selected && "-z-50 shadow-sm"}`,
|
||||
)}
|
||||
|
|
@ -76,9 +146,14 @@ function NoteNode({
|
|||
<div
|
||||
style={{
|
||||
width: size.width,
|
||||
height: size.height,
|
||||
height: "100%",
|
||||
display: "flex",
|
||||
overflow: "hidden",
|
||||
}}
|
||||
className={cn(
|
||||
"transition-all duration-200 ease-in-out",
|
||||
!isResizing && "transition-[width,height]",
|
||||
)}
|
||||
>
|
||||
<NodeDescription
|
||||
inputClassName={cn(
|
||||
|
|
@ -93,10 +168,10 @@ function NoteNode({
|
|||
: "dark:!text-background",
|
||||
)}
|
||||
style={{ backgroundColor: COLOR_OPTIONS[bgColor] ?? "#00000000" }}
|
||||
charLimit={2500}
|
||||
nodeId={data.id}
|
||||
charLimit={CHAR_LIMIT}
|
||||
nodeId={dataId}
|
||||
selected={selected}
|
||||
description={data.node?.description}
|
||||
description={dataDescription}
|
||||
emptyPlaceholder="Double-click to start typing or enter Markdown..."
|
||||
placeholderClassName={
|
||||
COLOR_OPTIONS[bgColor] === null ? "" : "dark:!text-background"
|
||||
|
|
|
|||
|
|
@ -50,7 +50,10 @@ export default function AppHeader(): JSX.Element {
|
|||
useResetDismissUpdateAll();
|
||||
|
||||
return (
|
||||
<div className="flex h-[62px] w-full items-center justify-between gap-2 border-b px-5 py-2.5 dark:bg-background">
|
||||
<div
|
||||
className="flex h-[62px] w-full items-center justify-between gap-2 border-b px-5 py-2.5 dark:bg-background"
|
||||
data-testid="app-header"
|
||||
>
|
||||
{/* Left Section */}
|
||||
<div
|
||||
className={`flex items-center gap-2`}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,11 @@
|
|||
import { expect, Page, test } from "@playwright/test";
|
||||
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
|
||||
|
||||
async function verifyTextareaValue(page: Page, value: string) {
|
||||
async function verifyTextareaValue(
|
||||
page: Page,
|
||||
value: string,
|
||||
flowName: string,
|
||||
) {
|
||||
await page
|
||||
.getByTestId("textarea_str_input_value")
|
||||
.waitFor({ state: "visible" });
|
||||
|
|
@ -9,6 +13,8 @@ async function verifyTextareaValue(page: Page, value: string) {
|
|||
|
||||
await expect(page.getByTestId("textarea_str_input_value")).toHaveValue(value);
|
||||
|
||||
await page.waitForTimeout(500);
|
||||
|
||||
await page.getByTestId("icon-ChevronLeft").first().click();
|
||||
|
||||
await page.waitForSelector('[data-testid="list-card"]', {
|
||||
|
|
@ -16,13 +22,15 @@ async function verifyTextareaValue(page: Page, value: string) {
|
|||
state: "visible",
|
||||
});
|
||||
|
||||
await page.getByTestId("list-card").first().click();
|
||||
await page.waitForTimeout(500);
|
||||
await page.getByText(flowName).first().click();
|
||||
|
||||
await page.waitForSelector('[data-testid="textarea_str_input_value"]', {
|
||||
timeout: 5000,
|
||||
state: "visible",
|
||||
});
|
||||
|
||||
await page.waitForTimeout(500);
|
||||
const inputValue = await page
|
||||
.getByTestId("textarea_str_input_value")
|
||||
.inputValue();
|
||||
|
|
@ -37,6 +45,8 @@ test(
|
|||
Math.random().toString(36).substring(2, 8),
|
||||
);
|
||||
|
||||
const randomFlowName = Math.random().toString(36).substring(2, 8);
|
||||
|
||||
await awaitBootstrapTest(page);
|
||||
await page.getByTestId("blank-flow").click();
|
||||
|
||||
|
|
@ -45,6 +55,12 @@ test(
|
|||
state: "visible",
|
||||
});
|
||||
|
||||
await page.getByTestId("input-flow-name").click();
|
||||
|
||||
await page.getByTestId("input-flow-name").fill(randomFlowName);
|
||||
|
||||
await page.keyboard.press("Enter");
|
||||
|
||||
await page.getByTestId("sidebar-search-input").click();
|
||||
await page.getByTestId("sidebar-search-input").fill("text output");
|
||||
|
||||
|
|
@ -56,9 +72,11 @@ test(
|
|||
state: "visible",
|
||||
});
|
||||
|
||||
await page.getByTestId("app-header").first().click();
|
||||
|
||||
for (const value of randomValues) {
|
||||
try {
|
||||
await verifyTextareaValue(page, value);
|
||||
await verifyTextareaValue(page, value, randomFlowName);
|
||||
} catch (error) {
|
||||
console.error(`Failed to verify value: ${value}`, error);
|
||||
throw error;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ test(
|
|||
|
||||
await page.getByTestId("fit_view").click();
|
||||
|
||||
await page.getByText("openai").first().click();
|
||||
await page.getByText("openai").last().click();
|
||||
await page.keyboard.press("Delete");
|
||||
|
||||
//connection 1
|
||||
|
|
@ -94,8 +94,8 @@ test(
|
|||
.getByTestId("div-chat-message")
|
||||
.allTextContents();
|
||||
|
||||
const concatAllText2 = textContents2.join(" ");
|
||||
|
||||
expect(concatAllText2).toBe(concatAllText);
|
||||
textContents2.forEach((text) => {
|
||||
expect(text).toBe(concatAllText);
|
||||
});
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue