Commit graph

2,287 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
79df6d883a Refactor store service to include user search by
username
2023-12-01 21:58:09 -03:00
anovazzi1
bc7e612cfb code format 2023-12-01 18:19:11 -03:00
Gabriel Luiz Freitas Almeida
9cf6e93fe5 Add utility functions for API and component
validation
2023-12-01 17:54:27 -03:00
Gabriel Luiz Freitas Almeida
e8830901ab Add validate_is_component function to read_flows 2023-12-01 17:54:15 -03:00
Gabriel Luiz Freitas Almeida
2a8c972d49 Fix autogenerate diffs error handling 2023-12-01 17:02:37 -03:00
Gabriel Luiz Freitas Almeida
dcefb8363c Fix migration error and initialize database in
utils.py
2023-12-01 16:37:11 -03:00
Gabriel Luiz Freitas Almeida
8f04139ddd Fix migration and add confirmation prompt 2023-12-01 16:30:59 -03:00
Gabriel Luiz Freitas Almeida
ab212a046f Fix migration issue with autogenerate diffs 2023-12-01 16:30:54 -03:00
Gabriel Luiz Freitas Almeida
be5cdc9c47 Remove store_api_key and is_component columns from
user and flow tables
2023-12-01 16:30:43 -03:00
Gabriel Luiz Freitas Almeida
cb6228cea1 Fix imports and initialize services with
fix_migration option
2023-12-01 16:30:35 -03:00
Gabriel Luiz Freitas Almeida
163ef6973b Fix database initialization and migration 2023-12-01 16:30:26 -03:00
Gabriel Luiz Freitas Almeida
6aa1698383 Fix ValueError in Vertex class 2023-12-01 16:27:15 -03:00
Gabriel Luiz Freitas Almeida
1bdbbd12c0 Fix store_api_key column type 2023-12-01 15:46:16 -03:00
Gabriel Luiz Freitas Almeida
9a5b57a65a 🔥 refactor(types.py): remove unused import and variable 'custom_component_creator' to improve code cleanliness and maintainability 2023-12-01 15:12:19 -03:00
Gabriel Luiz Freitas Almeida
13135d3948 Update langflow imports in validate.py 2023-12-01 15:10:34 -03:00
Gabriel Luiz Freitas Almeida
4d6973ad19 Remove redundant base types from
CUSTOM_COMPONENT_SUPPORTED_TYPES
2023-12-01 15:10:24 -03:00
Gabriel Luiz Freitas Almeida
0bff0407b8 Remove unused import and commented code 2023-12-01 15:10:16 -03:00
Gabriel Luiz Freitas Almeida
a62d0bbb6b Refactor import statements in constants.py 2023-12-01 14:35:22 -03:00
Gabriel Luiz Freitas Almeida
ead79e802d Fix import statements and add missing Prompt class 2023-12-01 13:14:17 -03:00
Gabriel Luiz Freitas Almeida
b1224ddb63 feat(custom_component.py): add _tree attribute to store code tree for better performance
🔧 refactor(custom_component.py): refactor get_code_tree method to use the _tree attribute
🔧 refactor(custom_component.py): refactor get_build_method method to use the tree attribute
🔧 refactor(custom_component.py): refactor get_main_class_name method to use the tree attribute
🔧 refactor(custom_component.py): refactor build_template_config method to use the tree attribute
🔧 refactor(custom_component.py): refactor load_flow method to use import statement on separate lines for better readability
2023-12-01 13:12:48 -03:00
Gabriel Luiz Freitas Almeida
7a2ba97b4c Add has_return attribute to CallableCodeDetails
class
2023-12-01 13:12:35 -03:00
Gabriel Luiz Freitas Almeida
4583d30f4c feat(code_parser.py): add support for parsing return statement in function or method nodes
🐛 fix(code_parser.py): fix import formatting to improve readability
 feat(code_parser.py): add support for parsing function arguments and body in function or method nodes
2023-12-01 13:12:19 -03:00
Gabriel Luiz Freitas Almeida
90621f509b Refactor necessary_imports in validate.py 2023-11-30 18:06:27 -03:00
Lucas Oliveira
b9b8937eda formatting 2023-11-30 17:34:40 -03:00
Gabriel Luiz Freitas Almeida
1f4712d7ae Fix frontend template update bug 2023-11-30 17:09:39 -03:00
Gabriel Luiz Freitas Almeida
c8404520fe Add CustomComponent class to langflow components 2023-11-30 17:09:12 -03:00
Gabriel Luiz Freitas Almeida
d2966c37df Refactor code_parser.py to remove kwargs from
showing up as fields in the frontend
2023-11-30 17:08:50 -03:00
Gabriel Luiz Freitas Almeida
831f665e06 🐛 fix(validate.py): fix spacing and formatting issues in the code to improve readability
 feat(validate.py): add support for default imports in the dynamic class constructor to improve usability and reduce code duplication
🔧 chore(validate.py): refactor prepare_global_scope function to accept code string as an argument for better modularity and reusability
🔧 chore(validate.py): refactor build_class_constructor function to improve readability and remove unnecessary imports
2023-11-30 16:55:10 -03:00
Gabriel Luiz Freitas Almeida
98d1eecd40 Refactor code and fix custom_fields bug 2023-11-30 15:42:41 -03:00
Gabriel Luiz Freitas Almeida
9c02aa5fc9 Fix condition for removing empty keys in
TemplateFieldCreator
2023-11-29 17:11:27 -03:00
Lucas Oliveira
8cdae5f45f fixed formatting 2023-11-29 16:43:15 -03:00
Gabriel Luiz Freitas Almeida
1b5e1cce99 Fix import formatting in CustomComponent class 2023-11-29 14:35:25 -03:00
Lucas Oliveira
1186ee26f4 Updated backend to contain docs to CustomComponent 2023-11-29 14:06:32 -03:00
Lucas Oliveira
766fd2b08f Formatting 2023-11-29 13:44:41 -03:00
Gabriel Luiz Freitas Almeida
0737b578d1 Add Optional import to documentloaders.py 2023-11-29 10:13:55 -03:00
Gabriel Luiz Freitas Almeida
2532581e02 🐛 fix(base.py): change 'suffixes' to 'fileTypes' in Vertex and LangChainTypeCreator classes to improve consistency and readability
🐛 fix(base.py): remove 'suffixes' attribute from TemplateFieldCreator class as it is duplicate and not used

🐛 fix(base.py): change 'suffixes' to 'file_types' in TOOL_INPUTS dictionary to improve consistency and readability

🐛 fix(base.py): remove 'suffixes' attribute from TemplateFieldCreator class as it is duplicate and not used

🐛 fix(frontend_node/base.py): remove 'suffixes' attribute from FrontendNode class as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from build_file_field function as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from file_path_templates dictionary as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from build_file_field function as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from file_path_templates dictionary as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from build_file_field function as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from file_path_templates dictionary as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from build_file_field function as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from file_path_templates dictionary as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from build_file_field function as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from file_path_templates dictionary as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from build_file_field function as it is duplicate and not used

🐛 fix(frontend_node/documentloaders.py): remove 'suffixes' attribute from
2023-11-29 10:13:08 -03:00
Gabriel Luiz Freitas Almeida
024ca2540f Merge remote-tracking branch 'origin/dev' into feature/store 2023-11-29 07:47:37 -03:00
Gabriel Luiz Freitas Almeida
da1cab825a Refactor update_frontend_node_with_template_values
function
2023-11-29 07:19:03 -03:00
Gabriel Luiz Freitas Almeida
41b3c29332 Refactor code formatting and imports 2023-11-28 23:08:17 -03:00
Gabriel Luiz Freitas Almeida
6746b0d4f0 Remove duplicate method in TaskService 2023-11-28 23:08:00 -03:00
Gabriel Luiz Freitas Almeida
8d461ce0dc 🔨 refactor(utils.py): rename replace_existing_field_values to update_frontend_node_with_template_values for clarity and consistency
🔨 refactor(endpoints.py): rename replace_existing_field_values to update_frontend_node_with_template_values for clarity and consistency
 feat(utils.py): add update_frontend_node_with_template_values function to update frontend node with values from raw template data
 feat(endpoints.py): add update_frontend_node_with_template_values function to update frontend node with values from raw template data
2023-11-28 23:07:42 -03:00
Gabriel Luiz Freitas Almeida
173db54a4d Fix field value replacement in
build_input_keys_response function
2023-11-28 23:00:48 -03:00
Gabriel Luiz Freitas Almeida
0d7e5992af Refactor custom_component endpoint and
reload_custom_component endpoint
2023-11-28 23:00:42 -03:00
Gabriel Luiz Freitas Almeida
9c09c724a9 Update CustomComponentCode schema 2023-11-28 23:00:29 -03:00
Gabriel Luiz Freitas Almeida
bff0f3496c Refactor langflow.interface.types.py 2023-11-28 23:00:20 -03:00
Gabriel Luiz Freitas Almeida
2444a7dd09 Refactor content formatting in utils.py 2023-11-28 22:39:14 -03:00
Gabriel Luiz Freitas Almeida
3cc1e4b8bc Refactor vertex import in base.py 2023-11-28 22:04:37 -03:00
Gabriel Luiz Freitas Almeida
c14f95c100 Fix is_task attribute in CustomComponentVertex
constructor
2023-11-28 22:02:55 -03:00
Gabriel Luiz Freitas Almeida
3accebc0a9 Refactor document loader component and improve
error handling
2023-11-28 20:23:10 -03:00
Gabriel Luiz Freitas Almeida
04736de021
add AnthropicLLM by CustomComponent (#1153) 2023-11-28 19:53:46 -03:00