Commit graph

10,163 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
0648e3f2ac Update component descriptions to reflect Playground instead of Interaction Panel 2024-05-02 13:50:01 -03:00
Cristhian Zanforlin Lousa
bbe72887eb
Introducing Versatile IO Components: JSON Viewer, DictionaryIO, and InputListIO (#1822)
In our ongoing commitment to enhancing user experience and streamlining
data interaction, we are thrilled to introduce a trio of powerful IO
components: JSON Viewer, DictionaryIO, and InputListIO. These components
are meticulously crafted to empower developers with seamless data
handling capabilities, enabling efficient processing and visualization
of JSON data structures, dictionaries, and input lists.
2024-05-02 13:47:43 -03:00
Gabriel Luiz Freitas Almeida
e3edc54d64 Refactor get_id_from_search_string function to convert UUID to string in service.py 2024-05-02 12:56:57 -03:00
cristhianzl
1df3fe7ad6 📝 (StringListInput.py): update parameter name from "param" to "input_value" to improve clarity and consistency
📝 (StringListOutput.py): update parameter name from "param" to "input_value" to improve clarity and consistency
📝 (index.tsx): add InputListComponent to handle StringListInput and StringListOutput components in IOFieldView
📝 (index.tsx): update InputListComponent props to include value, onChange, disabled, and playgroundDisabled
📝 (index.tsx): update IOFieldView to render InputListComponent for StringListInput and StringListOutput components
2024-05-02 11:39:41 -03:00
cristhianzl
aa3ea07c6a merge playground 2024-05-02 10:39:46 -03:00
Lucas Oliveira
0cee24dfbe Added error handling to allow ID to be searchable 2024-05-02 14:53:50 +02:00
Gabriel Luiz Freitas Almeida
0dc5cff33e Add id search from search string 2024-05-01 11:41:51 -03:00
Lucas Oliveira
a551308297 Added playground button on Store card 2024-05-01 05:12:26 +02:00
Lucas Oliveira
fe8fc5bd32 Fixed bug of clicking on IO Modal 2024-05-01 02:04:54 +02:00
anovazzi1
c63b949a44 update playground icon 2024-04-30 20:19:01 -03:00
anovazzi1
38d1e37023 Refactor component styles and icons 2024-04-30 19:14:49 -03:00
anovazzi1
2295754942 Refactor component styles and icons 2024-04-30 19:10:19 -03:00
cristhianzl
edabb31112 (StringListInput.py): add a new custom component called "StringListInput" to handle string list inputs
 (KeyPairOutput.py): add a new custom component called "KeyPairOutput" to handle dictionary outputs
 (StringListOutput.py): add a new custom component called "StringListOutput" to handle string list outputs
🚀 (constants.ts): add "StringListInput" and "StringListOutput" to the list of supported input and output types
♻️ (index.tsx): refactor IOKeyPairInput component to accept an additional prop "isInputField" and disable input fields if it's false
♻️ (index.tsx): refactor IOFieldView component to handle rendering of "StringListInput" and "StringListOutput" components
2024-04-30 13:33:37 -03:00
Lucas Oliveira
89517181c2 Fixed playground button at store 2024-04-30 15:25:06 +02:00
Lucas Oliveira
b21b45fd67 Fixed merge problems 2024-04-30 15:09:46 +02:00
Lucas Oliveira
f403d8e8b4 Fixed merge bug 2024-04-30 15:07:52 +02:00
Lucas Oliveira
74d0e2ed10 Fixed name of Run button 2024-04-30 15:07:20 +02:00
Lucas Oliveira
6b72b41b86 Fixed playground name and collection card 2024-04-30 15:07:20 +02:00
Cristhian Zanforlin Lousa
9c0ae350bf
Fix modal opening bug when not supposed to (#1795)
* fix opening modal error

* Fix cleanOnClose behavior in IOModal component

* Refactor useEffect dependency in CollectionCardComponent

* remove console

* add console.log for debugging

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-04-30 09:39:50 -03:00
cristhianzl
b06501a4c9 (JsonInput.py): add a new component called "JsonInput" to handle JSON input data in the language flow system
 (KeyPairInput.py): add a new component called "KeyPairInput" to handle dictionary input data in the language flow system
 (CSVOutput.py): add a new component called "CSVOutput" to handle CSV output data in the language flow system
 (ImageOutput.py): add a new component called "ImageOutput" to handle image output data in the language flow system
 (JsonOutput.py): add a new component called "JsonOutput" to handle JSON output data in the language flow system
 (PDFOutput.py): add a new component called "PDFOutput" to handle PDF output data in the language flow system
📝 (App.css): update CSS to improve readability and formatting
📝 (parameterComponent/index.tsx): fix a bug where rangeSpec is not properly accessed in the FloatComponent
📝 (cardComponent/index.tsx): update the CollectionCardComponent to include a new button for opening the playground and handle the opening and closing of the IOModal

📝 (codeTabsComponent/index.tsx): fix conditional rendering of InputListComponent by using optional chaining operator to check if the list property exists in the template object
📝 (keypairListComponent/index.tsx): refactor the initialization of the ref variable to handle both empty and non-empty values correctly
📝 (constants.ts): add "JsonInput" and "JsonOutput" to the INPUT_TYPES and OUTPUT_TYPES constants to support JSON input and output components
📝 (editNodeModal/index.tsx): fix conditional rendering of InputListComponent by using optional chaining operator to check if the list property exists in the template object
📝 (ioFieldView/components/JSONInput/index.tsx): add JSONInput component to handle JSON input in the IOFieldView component
📝 (ioFieldView/components/keyPairInput/index.tsx): add keyPairInput component to handle key-value pair input in the IOFieldView component

 (IOFieldView/index.tsx): add useState import to use state hook in functional component
 (IOFieldView/index.tsx): add support for KeyPairInput component in IOFieldView
 (IOFieldView/index.tsx): add support for JsonInput component in IOFieldView
 (IOFieldView/index.tsx): add support for JsonOutput component in IOFieldView
📝 (dictAreaModal/index.tsx): add useDarkStore import to use dark mode state in DictAreaModal component
📝 (classes.css): add CSS classes for json-view component in different themes
📝 (types/components/index.ts): remove duplicate InputGlobalComponentType definition
2024-04-29 18:07:53 -03:00
anovazzi1
dfc62752f3 Add uniqueId function from lodash to cloneFLowWithParent in storeUtils.ts 2024-04-27 20:53:29 -03:00
anovazzi1
32bfca24d0 Fix useEffect dependency in PlaygroundPage component 2024-04-26 17:59:05 -03:00
anovazzi1
171ebb2321 fix api call 2024-04-26 17:57:29 -03:00
anovazzi1
48ec18b6e5 Refactor API index.ts to pass data object as a parameter in getVerticesOrder function 2024-04-26 17:43:43 -03:00
anovazzi1
84dc98db4b Fix useEffect dependency in PlaygroundPage component 2024-04-26 17:35:19 -03:00
anovazzi1
c5b9419e52 Fix useEffect dependency in PlaygroundPage component 2024-04-26 17:33:56 -03:00
anovazzi1
4a6b13a7c7 first attempt playground page 2024-04-26 17:23:40 -03:00
Gabriel Luiz Freitas Almeida
c77d458b25 Refactor retrieve_vertices_order function in chat.py to use Annotated type hinting for data parameter 2024-04-26 16:41:22 -03:00
anovazzi1
2474cd348e Refactor CollectionCardComponent to improve code readability and fix loadingPlayground state handling 2024-04-26 13:40:54 -03:00
anovazzi1
b8a62a3c7b running flows from store, still need fixes 2024-04-25 18:37:23 -03:00
anovazzi1
089446b1b7 initial implementation of playground on store, not working yet 2024-04-25 16:28:03 -03:00
Gabriel Luiz Freitas Almeida
4317ab35b7 Refactor build_and_cache_graph_from_data function in chat.py to use model_dump() method for graph data 2024-04-25 16:06:14 -03:00
anovazzi1
dc71ad261b Fix cleanFlowPool function not being called in CollectionCardComponent 2024-04-25 15:33:34 -03:00
Gabriel Luiz Freitas Almeida
e22a3300cb Refactor get_vertices function to retrieve_vertices_order in chat.py 2024-04-25 13:03:53 -03:00
anovazzi1
66c0de5283 Merge branch 'playground' of personal:logspace-ai/langflow into playground 2024-04-25 00:10:24 -03:00
anovazzi1
257e18cf5e almost perfect not sending edges and node because of http web method 2024-04-25 00:10:21 -03:00
igorrCarvalho
6d6d1d73db Feat: add File input component 2024-04-24 22:37:20 -03:00
anovazzi1
bafda23b6c fix sorting glitch 2024-04-24 18:01:20 -03:00
anovazzi1
ed10322af2 Update setNodes and setEdges functions in flowStore.ts to skip saving changes when skipSave parameter is true 2024-04-24 17:50:02 -03:00
anovazzi1
55e56e19f5 merge from origin/dev 2024-04-24 11:12:54 -03:00
anovazzi1
0054077251 Merge remote-tracking branch 'origin/dev' into playground 2024-04-24 11:11:17 -03:00
Gabriel Luiz Freitas Almeida
a388e6dd42 Update version in pyproject.toml to 1.0.0a26 2024-04-24 09:18:31 -03:00
Gabriel Luiz Freitas Almeida
5ee638f984 🔧 (.github/workflows/pre-release-langflow.yml): add actions/checkout step to checkout the code before running the job 2024-04-24 09:11:52 -03:00
Gabriel Luiz Freitas Almeida
fe67f84d56 Update package versions in pyproject.toml files 2024-04-23 23:19:26 -03:00
Gabriel Luiz Freitas Almeida
82926cda65 Update kwargs parameter name in MemoryComponent.py to 'limit' instead of 'n_messages' 2024-04-23 23:13:19 -03:00
Gabriel Luiz Freitas Almeida
19e46de04c
Refactor MemoryComponent class and add ZepMessageReaderComponent (#1771)
* Add BaseMemoryComponent class to langflow.base.memory.memory.py (#1750)

* Add BaseMemoryComponent class to langflow.base.memory.memory.py

* Update MemoryComponent class in langflow.components.helpers.MemoryComponent.py to inherit from BaseMemoryComponent

*  (ZepMessageReader.py): Add ZepMessageReaderComponent to retrieve chat messages from Zep
📝 (ZepMessageWriter.py): Add ZepMessageWriterComponent to add messages to ZepChatMessageHistory

📝 (Langflow Memory Conversation.json): Refactor MemoryComponent class to inherit from BaseMemoryComponent for better code organization and reusability. Move get_messages method to the class level and validate kwargs for correct keys before processing.

* Update WeaviateSearch.py to include index_name parameter in build method

Update ZepMessageWriter.py to include metadata parameter in __init__ method

Update ZepMessageReader.py to include cast function for memory parameter

Update schema.py to include cast function for metadata parameter

Update process.py to include tweaks_dict variable and use it in apply_tweaks method

Update Weaviate.py to include index_name parameter in build method and raise ValueError if index_name is not provided

* Update process.py to include tweaks_dict variable and use it in apply_tweaks method

*  (ZepMessageReader.py): Update ZepMessageReaderComponent build method to handle optional url and api_key parameters and improve error handling for zep-python package import
📝 (ZepMessageWriter.py): Refactor ZepMessageWriterComponent to use 'text' instead of 'message' for consistency and update add_message method to reflect this change. Add 'input_value' configuration option for specifying the record to write to Zep. Update build_config method to reflect changes in input parameters. Update add_message method to use 'text' parameter instead of 'message'. Update build method to handle optional url and api_key parameters and improve error handling for zep-python package import.

* Update zep-python package to version 2.0.0rc5

* 📝 (memory.py): update parameter name from 'message' to 'text' for better clarity and consistency
2024-04-23 23:06:54 -03:00
cristhianzl
9055eb0bc9 Merge branch 'dev' into playground 2024-04-23 21:55:54 -03:00
Cristhian Zanforlin Lousa
ce322f1ba1
Merge pdfView Branch Features (#1772)
* starting commit from pdfView branch

* 📝 (csvOutputComponent/index.tsx): update useEffect dependency array to include 'separator' variable to re-render component when separator changes

* 🐛 (csvOutputComponent/index.tsx): handle error when parsing JSON string in file variable assignment to prevent app crash
 (csvOutputComponent/index.tsx): add error message and UI when file variable is null to inform user about the error

* 📝 (KeyPairInput.py): Add KeyPairInput component to handle dictionary input and return the input value as is
📝 (CSVOutput.py): Add CSVOutput component to handle CSV output with configurable separator
📝 (ImageOutput.py): Add ImageOutput component to handle image output
📝 (PDFOutput.py): Add PDFOutput component to handle PDF output
📝 (constants.ts): Add KeyPairInput to the list of supported input types
📝 (IOModal/index.tsx): Remove console.log statement

* 🔧 (KeyPairInput.py): Remove unused KeyPairInput component
🔧 (CSVOutput.py): Remove unused CSVOutput component
🔧 (ImageOutput.py): Remove unused ImageOutput component
🔧 (PDFOutput.py): Remove unused PDFOutput component

These components were deleted as they were no longer being used in the project and were causing unnecessary clutter in the codebase. Removing them improves code maintainability and reduces potential confusion for developers working on the project.

* 🔧 (IOModal/index.tsx): remove console.log statement for selectedViewField variable to clean up code and improve performance
2024-04-23 21:54:01 -03:00
Gabriel Luiz Freitas Almeida
b07b937b20 Update build_and_cache_graph function to handle graph data from database and from input data (#1750)
* Update build_and_cache_graph function to handle graph data from database and from input data

* Update get_vertices endpoint to handle graph data from input

* Update build_vertex function to handle graph data from database

* Update build_vertex function to handle graph data from input

* Update FlowDataRequest schema to include optional viewport field
2024-04-23 20:38:04 -03:00
anovazzi1
34ac7f359a removed console.log 2024-04-23 16:53:38 -03:00