Commit graph

8,314 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
2033fd65ef Add StoreMessages component to store messages 2024-02-21 16:00:46 -03:00
Gabriel Luiz Freitas Almeida
65a88cbcbd Refactor MessageHistoryComponent to use get_messages function 2024-02-21 16:00:40 -03:00
Gabriel Luiz Freitas Almeida
e0e35b3245 Add session_id parameter to ChatInput class 2024-02-21 16:00:31 -03:00
Gabriel Luiz Freitas Almeida
ec9dd59b0b Refactor validate.py: Add PROMPT_INPUT_TYPES and rearrange imports 2024-02-21 16:00:23 -03:00
Gabriel Luiz Freitas Almeida
b7d175af2f Refactor get_messages and get_transactions in monitor.py 2024-02-21 16:00:13 -03:00
anovazzi1
e2ba143171 prevent save on buid using isBuilding 2024-02-21 14:47:45 -03:00
Gabriel Luiz Freitas Almeida
05916ab03c Refactor vertex sorting in Graph class to use avg_build_time 2024-02-21 12:11:29 -03:00
Gabriel Luiz Freitas Almeida
04b98ba36e Add build time tracking to Vertex class 2024-02-21 12:11:07 -03:00
Gabriel Luiz Freitas Almeida
0ff3e49eb6 Fix error handling in get_vertices and add build time to vertex 2024-02-21 12:10:57 -03:00
Gabriel Luiz Freitas Almeida
1b07ae35da Refactor graph sorting method in chat.py 2024-02-21 10:19:48 -03:00
Gabriel Luiz Freitas Almeida
f58245fab6 Add run and update count properties to Graph class 2024-02-21 10:19:44 -03:00
Gabriel Luiz Freitas Almeida
ccd2355ca1 Remove unused endpoints 2024-02-21 09:58:04 -03:00
Gabriel Luiz Freitas Almeida
d35a3d7b87 Add predecessors and successors properties to Vertex class 2024-02-21 09:57:49 -03:00
Gabriel Luiz Freitas Almeida
deb3ee8c74 Adds adjacency map and in degree map 2024-02-21 09:57:42 -03:00
Gabriel Luiz Freitas Almeida
85f905f0e4 Remove unnecessary code in ChatMessage component 2024-02-20 23:11:35 -03:00
Gabriel Luiz Freitas Almeida
9adb4b97d4 is_ai is set to true if sender is null 2024-02-20 23:11:18 -03:00
Gabriel Luiz Freitas Almeida
4ad215e4cd Update Markdown library import and variable usage 2024-02-20 22:53:30 -03:00
Gabriel Luiz Freitas Almeida
11970f9188 Remove console.log statements 2024-02-20 22:53:22 -03:00
Gabriel Luiz Freitas Almeida
c9e879f494 Update sender_type to sender in ChatInput class 2024-02-20 22:26:39 -03:00
Gabriel Luiz Freitas Almeida
e235bc4151 Update sender_type to sender in ChatOutput class 2024-02-20 22:26:15 -03:00
Gabriel Luiz Freitas Almeida
300d1aa050 Remove is_composition attribute from custom component 2024-02-20 21:52:46 -03:00
Gabriel Luiz Freitas Almeida
0aad733e39 Add is_composition to FrontendNode 2024-02-20 21:37:29 -03:00
Gabriel Luiz Freitas Almeida
17dee05b78 Refactor component attributes and add is_composition flag 2024-02-20 21:33:41 -03:00
Gabriel Luiz Freitas Almeida
9966b4a8dc Refactor buildUtils to use flat() instead of flatMap() 2024-02-20 20:58:53 -03:00
Gabriel Luiz Freitas Almeida
c7ae2a5eae Refactor variable name in buildUtils.ts 2024-02-20 20:57:12 -03:00
Gabriel Luiz Freitas Almeida
391ff85a59 Remove unnecessary comments in buildUtils.ts 2024-02-20 20:51:55 -03:00
Gabriel Luiz Freitas Almeida
a40dc03a93 Refactor buildVertices function to improve performance and update UI during vertex building 2024-02-20 20:51:39 -03:00
Gabriel Luiz Freitas Almeida
4cfb09a69a
Bugfix: add build status on backend shutdown (#1451)
This pull request introduces a new feature aimed at updating the build
flow status for each vertex when the backend is shut down. Additionally,
a minor refactor has been implemented in the interceptor to enhance code
readability.
2024-02-20 20:38:40 -03:00
cristhianzl
103ab84bc3 merge fix 2024-02-20 19:55:16 -03:00
cristhianzl
11092c5955 Merge branch 'cz/promise-each' of github.com:logspace-ai/langflow into cz/promise-each 2024-02-20 19:53:04 -03:00
cristhianzl
1a5a6ba35b 🐛 fix(api.tsx): import missing BuildStatus enum from constants/enums to fix compilation error
 feat(api.tsx): add support for renewing access token and handling authentication errors to improve user experience
 feat(api.tsx): add support for updating build status of vertices to keep track of build progress
🐛 fix(flowStore.ts): add missing updateVerticesBuild function to update the list of vertices being built
🐛 fix(flowStore.ts): initialize verticesBuild array to an empty array to avoid undefined errors
🐛 fix(flowStore.ts): fix typo in updateVerticesBuild function name
🐛 fix(flowStore.ts): fix typo in updateBuildStatus function parameter name
🐛 fix(flowStore.ts): fix typo in updateBuildStatus function parameter type
 feat(flowStore.ts): add verticesBuild property to store the list of vertices being built
🐛 fix(index.ts): fix typo in updateBuildStatus function parameter name
🐛 fix(index.ts): fix typo in updateBuildStatus function parameter type
 feat(index.ts): add updateVerticesBuild function to update the list of vertices being built
🐛 fix(buildUtils.ts): update build status and vertices build list when building vertices to keep track of build progress
2024-02-20 19:52:43 -03:00
Lucas Oliveira
ad6f362d8b Added "Saved" tooltip at header 2024-02-20 22:52:03 +01:00
Gabriel Luiz Freitas Almeida
0eaed5bbcb Update ResultDict to ResultData in build_vertex function 2024-02-20 16:59:26 -03:00
Gabriel Luiz Freitas Almeida
90cf166ef6 Refactor schema mismatch check and log vertex build 2024-02-20 16:59:21 -03:00
Gabriel Luiz Freitas Almeida
35a6b8956a Update ResultDict to ResultData in Vertex class 2024-02-20 16:59:08 -03:00
Gabriel Luiz Freitas Almeida
4c4414729d Update ResultDict class name to ResultData 2024-02-20 16:59:02 -03:00
Gabriel Luiz Freitas Almeida
4abff7f80c Refactor build_vertex function to include timing information 2024-02-20 16:58:56 -03:00
Gabriel Luiz Freitas Almeida
9211b1c8e5 Refactor Vertex params assignment 2024-02-20 16:22:15 -03:00
Gabriel Luiz Freitas Almeida
bf8330e152 Refactor Vertex params assignment 2024-02-20 16:18:02 -03:00
Gabriel Luiz Freitas Almeida
f70d3131a5 Refactor typing import in base.py 2024-02-20 16:06:16 -03:00
Gabriel Luiz Freitas Almeida
c0ee093854 Refactor buildVertices function to extract buildVertex logic 2024-02-20 16:01:41 -03:00
Gabriel Luiz Freitas Almeida
a4c74f099c Fix session retrieval in build_vertex function 2024-02-20 16:01:23 -03:00
Gabriel Luiz Freitas Almeida
60c7ea3e35 Sort vertices containing interface components first 2024-02-20 16:01:17 -03:00
cristhianzl
b4dbe90212 🐛 fix(buildUtils.ts): refactor buildVertices function to improve readability and error handling
The buildVertices function has been refactored to improve readability and error handling. Instead of using Promise.all with map, it now uses a for loop to iterate over the vertices and perform the build process for each vertex. This change allows for better error handling and reporting. Additionally, the onBuildError callback is now called with the correct parameters when there is an error building a component.
2024-02-20 15:08:19 -03:00
Gabriel Luiz Freitas Almeida
67f826b43f 🔧 chore(chat.py): remove unused imports and variables to improve code readability and maintainability
🐛 fix(chat.py): fix error handling in build_vertex function to correctly handle exceptions and improve error reporting
2024-02-20 14:32:34 -03:00
Gabriel Luiz Freitas Almeida
3bb3ca7f3a Add support for dumping artifacts as YAML string 2024-02-20 14:32:13 -03:00
Gabriel Luiz Freitas Almeida
b3201ce8d7 add error handling for missing vertices 2024-02-20 14:32:03 -03:00
Gabriel Luiz Freitas Almeida
cb284b4b7f Add status do IO components 2024-02-20 13:21:30 -03:00
Gabriel Luiz Freitas Almeida
7b9166b5ba Refactor chat service code 2024-02-20 13:19:42 -03:00
Gabriel Luiz Freitas Almeida
80815e0526 Refactor caching and result set up 2024-02-20 13:17:40 -03:00