Commit graph

2,667 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
a2ce598e08 🐛 fix(__main__.py): rename component_path to components_path for consistency and clarity
 feat(__main__.py): add support for components_path command line option to specify the directory containing custom components
🐛 fix(endpoints.py): rename settings.component_path to settings.components_path to match the updated attribute name in Settings class
🐛 fix(settings.py): rename component_path attribute to components_path for consistency and clarity
2023-07-31 17:47:23 -03:00
Lucas Oliveira
af083f24d3 Fixed modal saving changes when not supposed to 2023-07-31 17:44:55 -03:00
Gabriel Luiz Freitas Almeida
2e7b35ddd5 🔧 fix(custom_component.py): change list_flows and get_flow methods to accept an optional get_session parameter for better flexibility and testability 2023-07-31 17:28:29 -03:00
Gabriel Luiz Freitas Almeida
b2979bce17 🐛 fix(flow-runner.mdx): remove unnecessary load_flow calls and update get_flow method signature to include tweaks parameter
🚚 chore(flow-runner.mdx): update load_flow references to get_flow
🚚 chore(flow-runner.mdx): remove commented out code
🚚 chore(flow-runner.mdx): update load_flow references to get_flow
2023-07-31 16:03:51 -03:00
Gabriel Luiz Freitas Almeida
95bf9ba233 🔧 refactor(custom_component.py): refactor get_flow method signature to use Optional type hint for flow_name and flow_id parameters for better clarity and maintainability 2023-07-31 15:02:13 -03:00
Lucas Oliveira
1687824453 Optimized code 2023-07-31 14:01:54 -03:00
Lucas Oliveira
ac46fff761 Formattef code 2023-07-31 10:53:42 -03:00
Lucas Oliveira
2720d27e30 Fixed error showing when not supposed to 2023-07-31 10:53:03 -03:00
Lucas Oliveira
ce2f750626 Optimized code 2023-07-31 10:50:51 -03:00
Gabriel Luiz Freitas Almeida
566c48166e 🔀 refactor(custom_component.py): modify get_flow method to accept keyword arguments for flow_name and flow_id to improve flexibility and readability 2023-07-31 10:35:48 -03:00
Lucas Oliveira
5de0b2d5ad Fixed input types logic on tooltip 2023-07-31 10:28:03 -03:00
Gabriel Luiz Freitas Almeida
9acb6fef36 🚀 feat(custom_component.py): add methods to retrieve flow by name and flow by id for CustomComponent
🐛 fix(custom_component.py): fix indentation issue in CustomComponent class
2023-07-31 10:26:27 -03:00
Lucas Oliveira
2ec4cf1a55 Fixed logic of getting tooltips, added description when tooltip is empty 2023-07-31 09:57:06 -03:00
Lucas Oliveira
3683c01102 Added scroll on tooltip, added logic to check base_classes in flow nodes before the /all list 2023-07-31 08:41:52 -03:00
Lucas Oliveira
1590aa491a Optimized groupByFamily and implemented output tooltip showing the nodes that receive its output 2023-07-28 21:26:08 -03:00
gustavoschaedler
7f23334f97 🐛 fix(directory_reader.py): add check for usage of 'Optional' type hint without importing it
 feat(directory_reader.py): add methods to check if a specific type hint is imported and used in function arguments
 feat(directory_reader.py): add method to check if a type hint is used but not imported in the code
 feat(directory_reader.py): add check for usage of 'Optional' type hint without importing it in the process_file method
2023-07-28 23:24:17 +01:00
anovazzi1
735f2556c2 Merge branch 'python_custom_node_component' of personal:logspace-ai/langflow into python_custom_node_component 2023-07-28 16:09:13 -03:00
Lucas Oliveira
115a784b66 Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component 2023-07-28 15:21:14 -03:00
Lucas Oliveira
5e78f6be79 Changed gitignore 2023-07-28 15:19:31 -03:00
Gabriel Luiz Freitas Almeida
bdc62ba725 🐛 fix(__main__.py): change default value of workers option from -1 to 2 to limit the number of worker processes 2023-07-28 15:17:03 -03:00
Lucas Oliveira
eaceee9480 GitIgnore changed 2023-07-28 15:07:03 -03:00
Lucas Oliveira
638f450ead Fixed bug showing on console from Unknown 2023-07-28 15:05:10 -03:00
Lucas Oliveira
df8d84d07f Fixed unknown node not showing 2023-07-28 14:59:40 -03:00
anovazzi1
48995ce849 Merge branch 'python_custom_node_component' of personal:logspace-ai/langflow into python_custom_node_component 2023-07-28 14:58:26 -03:00
anovazzi1
199052e754 fix(extraSidebarComponent): add useEffect hook to show components with errors on load
fix(extraSidebarComponent): update key prop in ShadTooltip component to use unique value
fix(extraSidebarComponent): update draggable attribute in component div to be disabled if there is an error
feat(api): add error property to APIClassType to indicate if there is an error in the component
2023-07-28 14:58:05 -03:00
Lucas Oliveira
148483ed56 Fixed key bug inside accordion 2023-07-28 14:51:06 -03:00
Lucas Oliveira
1ea05b3584 Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component 2023-07-28 14:49:11 -03:00
Lucas Oliveira
641bcb4a58 Fixed unique keys bug 2023-07-28 14:48:40 -03:00
gustavoschaedler
2f0ce5fc1b 🐛 fix(types.py): change default value of "error" field in component_template to None for better consistency and readability
🐛 fix(base.py): change default value of "error" field in FrontendNode class to None for better consistency and readability
2023-07-28 18:32:03 +01:00
gustavoschaedler
36772dac99 🐛 fix(types.py): add missing error field to component template in build_invalid_menu function
🐛 fix(base.py): add missing error field to FrontendNode class to match the template structure
2023-07-28 16:58:04 +01:00
Gabriel Luiz Freitas Almeida
98eca09270 🔧 fix(custom_component.py): add type hints to improve code readability and maintainability
🔧 fix(custom_component.py): add return type hint to 'load_flow' method for better code documentation
🔧 fix(custom_component.py): add return type hint to 'list_flows' method for better code documentation
2023-07-28 11:22:40 -03:00
Gabriel Luiz Freitas Almeida
25a59d745d 🔧 chore(types.py): refactor add_new_custom_field function to improve readability and maintainability
🔧 chore(types.py): refactor build_field_config function to improve readability and maintainability
2023-07-28 11:22:10 -03:00
gustavoschaedler
d579257f0d 🐛 fix(types.py): handle exceptions when getting custom function and building field config to prevent crashes and log errors
 feat(types.py): add validation check for custom component before building field config to ensure only valid components are processed
🐛 fix(types.py): handle empty function_args case to prevent errors when adding extra fields to the frontend node
🐛 fix(types.py): handle exceptions when creating custom component to prevent crashes and log errors
2023-07-28 01:21:05 +01:00
Gabriel Luiz Freitas Almeida
397c665536 Merge branch 'python_custom_node_component' into ChatWidgetAPI 2023-07-27 17:38:35 -03:00
Gabriel Luiz Freitas Almeida
0b28d5d8de format 2023-07-27 17:36:34 -03:00
Gabriel Luiz Freitas Almeida
b2e784dcb7 🐛 fix(types.py): fix issue with incorrect assignment of field_advanced variable in add_new_custom_field function
 feat(types.py): add support for advanced field configuration in add_new_custom_field function
🐛 fix(types.py): fix issue with incorrect assignment of field_advanced variable in add_code_field function
 feat(types.py): add support for advanced field configuration in add_code_field function
🐛 fix(types.py): fix issue with incorrect sorting of function_args in add_extra_fields function
 feat(types.py): add sorting of function_args in add_extra_fields function
🐛 fix(types.py): fix issue with incorrect usage of field_config in add_code_field function
 feat(types.py): add support for field_config in add_code_field function
🐛 fix(types.py): fix issue with incorrect usage of field_config in build_langchain_template_custom_component function
 feat(types.py): add support for field_config in build_langchain_template_custom_component function
2023-07-27 17:19:24 -03:00
Gabriel Luiz Freitas Almeida
35724e1473 🐛 fix(code_parser.py): handle "None" values in default arguments correctly 2023-07-27 17:17:57 -03:00
Cristhian Zanforlin Lousa
07b5419586 🔧 chore(constants.ts): add URL_EXCLUDED_FROM_ERROR_RETRIES constant to store URLs excluded from error retries for better error handling
🔧 chore(api.tsx): add logic to exclude certain URLs from error retries in the ApiInterceptor component to improve error handling
🔧 chore(index.ts): update postCustomComponent function to use the api instance instead of axios for consistency and reusability
2023-07-27 14:59:11 -03:00
Gabriel Luiz Freitas Almeida
3b93c5814b 🐛 fix(utils.py): simplify format_content function to improve readability and maintainability 2023-07-27 14:33:31 -03:00
Gabriel Luiz Freitas Almeida
707e55c880 🐛 fix(loading.py): refactor instantiate_prompt function to improve readability and maintainability
 feat(utils.py): add utility functions to handle node type and format kwargs in instantiate_prompt function
2023-07-27 14:32:10 -03:00
gustavoschaedler
2144e0d92d 🐛 fix(code_parser.py): strip single quotes from default values in CodeParser class to improve consistency and readability 2023-07-27 15:12:18 +01:00
Gabriel Luiz Freitas Almeida
d9816902e4 🐛 fix(GenericNode/index.tsx): fix rendering of validationStatus.params when it is a string 2023-07-27 09:56:15 -03:00
Gabriel Luiz Freitas Almeida
28bf88cf79 🐛 fix(custom_component.py): fix custom_repr method to return a string representation of repr_value 2023-07-27 09:55:48 -03:00
anovazzi1
3baa3a1ca5 Merge branch 'python_custom_node_component' of personal:logspace-ai/langflow into python_custom_node_component 2023-07-27 09:47:20 -03:00
anovazzi1
3d103398e3 fix(codeAreaModal): clear error state when setting value to code and closing modal to prevent displaying previous errors 2023-07-27 09:46:29 -03:00
Gabriel Luiz Freitas Almeida
4a0fe95093 🔧 chore(types.py): add support for custom field value in add_new_custom_field function
🔧 chore(types.py): add support for custom field value in add_new_custom_field function to allow specifying a default value for the field
2023-07-27 09:44:01 -03:00
Gabriel Luiz Freitas Almeida
2b55b0c3b3 🔀 refactor(custom_component.py): rename load_flow method parameter flow_id to graph_id for clarity
🔀 refactor(custom_component.py): add optional `tweaks` parameter to `load_flow` method to allow for processing tweaks on the graph data
🔀 refactor(custom_component.py): rename `data_graph` variable to `graph_data` for consistency and clarity
🔀 refactor(custom_component.py): add logic to process tweaks on the `graph_data` if `tweaks` parameter is provided
2023-07-27 09:39:27 -03:00
Gabriel Luiz Freitas Almeida
34008bf3d0 🔄 refactor(index.tsx): reorder import statements for better readability and consistency 2023-07-27 07:02:48 -03:00
Gabriel Luiz Freitas Almeida
8d8fae78c8 🔧 fix(__init__.py): update import statement for CustomComponent to reflect new location
🔧 fix(constants.py): update import statement for CustomComponent to reflect new location
🔧 fix(constants.py): update field_config to build_config to match changes in CustomComponent class
🔧 fix(constants.py): update build method signature to match changes in CustomComponent class
2023-07-27 07:02:14 -03:00
Lucas Oliveira
ae83c987a5 Added documentation link to the description of the Api Tab 2023-07-26 23:00:51 -03:00