Commit graph

2,269 commits

Author SHA1 Message Date
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
Gabriel Luiz Freitas Almeida
4b54a9d234 Fix typing error and handle Coroutine object in
generate_result() function
2023-11-28 19:39:14 -03:00
Gabriel Luiz Freitas Almeida
77227b887b Update typing import in base.py 2023-11-28 19:38:52 -03:00
Gabriel Luiz Freitas Almeida
ff86d02a92 Refactor process_graph_cached_task function 2023-11-28 19:38:22 -03:00
Gabriel Luiz Freitas Almeida
86ce36426a Refactor vertex lookup using a dictionary 2023-11-28 17:56:30 -03:00
Gabriel Luiz Freitas Almeida
b5c27724a6 Fix merge_nested_dicts_with_renaming function 2023-11-28 17:43:13 -03:00
Gabriel Luiz Freitas Almeida
1a0c5c497a Add basic imports from typing module 2023-11-28 15:38:40 -03:00
Gabriel Luiz Freitas Almeida
cca09505ee Remove unused code in build_valid_menu function 2023-11-28 15:18:06 -03:00
Gabriel Luiz Freitas Almeida
732f64bf23 Add task_result variable and update
custom_component_update function
2023-11-28 15:18:00 -03:00
Gabriel Luiz Freitas Almeida
0d8a400557 Refactor process_graph_cached_task to use
async/await
2023-11-28 15:17:52 -03:00
Gabriel Luiz Freitas Almeida
46ba84b95d Fix async handling in TaskService 2023-11-28 15:17:44 -03:00
Gabriel Luiz Freitas Almeida
2a0e33f3f4 🐛 fix(chat.py): fix variable name in if condition to improve code readability and maintain consistency 2023-11-28 15:13:09 -03:00
Gabriel Luiz Freitas Almeida
e63eb59116 🔀 refactor(base.py): rename top_level_nodes parameter to top_level_vertices in set_top_level method for better clarity and consistency 2023-11-28 15:12:47 -03:00
Gabriel Luiz Freitas Almeida
1a302fbba9 Add session_id_generator and compute_dict_hash
functions
2023-11-28 14:35:40 -03:00
Gabriel Luiz Freitas Almeida
1c27cd484b Refactor session service imports 2023-11-28 14:35:35 -03:00
Gabriel Luiz Freitas Almeida
875430592d Refactor cache update function 2023-11-28 14:35:28 -03:00
Gabriel Luiz Freitas Almeida
77ff531112 Fix get_new_key function and remove duplicate
return statements
2023-11-28 14:35:22 -03:00
Gabriel Luiz Freitas Almeida
dec36dbfb9 Fix edge source attribute in AgentVertex 2023-11-28 14:35:16 -03:00
Gabriel Luiz Freitas Almeida
f3c72ea97d Fix edge traversal in Graph class 2023-11-28 14:35:10 -03:00