Commit graph

6,519 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
595006cb77 Update AgentInitializerComponent to initialize a
Langchain Agent
2023-11-23 17:30:05 -03:00
anovazzi1
61ad880990 fix(shareModal/index.tsx): add conditional check for hasApiKey before calling handleGetTags and handleGetNames to prevent unnecessary API calls when there is no API key available 2023-11-23 17:22:43 -03:00
anovazzi1
b60fd7f04d fix(sideBarDraggableComponent): fix indentation and closing tag placement for IconComponent in SidebarDraggableComponent 2023-11-23 16:55:15 -03:00
anovazzi1
9db5f90acf fix(extraSidebarComponent): sort the keys in dataFilter object with a custom sorting function to prioritize "saved_components" key 2023-11-23 16:38:54 -03:00
Gabriel Luiz Freitas Almeida
cdb7c1a695 Update mypy version to 1.7.1 2023-11-23 15:55:34 -03:00
Gabriel Luiz Freitas Almeida
8b1895ccf3 Update AgentInitializerComponent documentation
link
2023-11-23 15:55:27 -03:00
Gabriel Luiz Freitas Almeida
29cef91e6f Add AgentInitializerComponent to initialize agents 2023-11-23 15:38:40 -03:00
Gabriel Luiz Freitas Almeida
4580d428e5 Fix import statement in constants.py 2023-11-23 15:38:24 -03:00
Gabriel Luiz Freitas Almeida
4e5ec2a4de Add caching for langchain types dictionary 2023-11-23 12:16:39 -03:00
Gabriel Luiz Freitas Almeida
19f998a326 Add custom component reload endpoint 2023-11-23 12:16:28 -03:00
Gabriel Luiz Freitas Almeida
943ef39050 Refactor API endpoints and validate custom
component code
2023-11-23 11:50:31 -03:00
Gabriel Luiz Freitas Almeida
2b882bd276 Add menu path to component template 2023-11-23 11:49:54 -03:00
Gabriel Luiz Freitas Almeida
843eeac7ee Fix caching bug in CodeParser 2023-11-23 11:49:46 -03:00
Gabriel Luiz Freitas Almeida
2f6a2f3efb Fix caching bug in get_code_tree method 2023-11-23 11:49:24 -03:00
Gabriel Luiz Freitas Almeida
4d285000cf Fix code validation and return type in
CustomComponent
2023-11-23 11:49:13 -03:00
Gabriel Luiz Freitas Almeida
49c9187e9c Update return type extraction to return a list
instead of a tuple
2023-11-23 11:49:04 -03:00
Gabriel Luiz Freitas Almeida
7a521fa6cb Add new loaders to constants.py 2023-11-23 11:48:14 -03:00
Gabriel Luiz Freitas Almeida
ccfd8e8acd Refactor file loader component 2023-11-23 11:48:06 -03:00
Gabriel Luiz Freitas Almeida
6fea589778 Refactor construct_eval_env method in CodeParser
class
2023-11-23 11:09:19 -03:00
Gabriel Luiz Freitas Almeida
14db3c0263 Refactor function_args check in add_extra_fields() 2023-11-23 10:57:23 -03:00
Gabriel Luiz Freitas Almeida
48dbbf1dd3 Add caching for code parsing 2023-11-23 10:57:15 -03:00
Gabriel Luiz Freitas Almeida
946bf03190 Add cache functionality to Component class 2023-11-23 10:57:11 -03:00
Gabriel Luiz Freitas Almeida
f4210f567b Add caching to CustomComponent class 2023-11-23 10:57:06 -03:00
Gabriel Luiz Freitas Almeida
bcd13e18f3 Fix missing type for argument in CustomComponent
class
2023-11-23 10:37:59 -03:00
Gabriel Luiz Freitas Almeida
65c1a1b241 Add typing imports to constants.py 2023-11-23 10:37:44 -03:00
Gabriel Luiz Freitas Almeida
1da20fadef Fix async issue in CustomComponent and
decrypt_api_key function
2023-11-23 10:03:48 -03:00
Gabriel Luiz Freitas Almeida
49da01345e Fix variable type annotation in CodeParser class 2023-11-23 10:03:40 -03:00
Gabriel Luiz Freitas Almeida
33d2b9d6aa Refactor agent imports and remove unused imports 2023-11-23 10:03:34 -03:00
Gabriel Luiz Freitas Almeida
fdaca098d9 Fix error in evaluating custom component code 2023-11-23 10:03:27 -03:00
Gabriel Luiz Freitas Almeida
1dc7053fbf Refactor flatten_query_string_lists function 2023-11-23 10:03:19 -03:00
Gabriel Luiz Freitas Almeida
0541078e43 Update typing import in
OpenAIConversationalAgent.py
2023-11-23 10:03:12 -03:00
Gabriel Luiz Freitas Almeida
05d7bd2386 Update OpenAIConversationalAgent.py 2023-11-23 09:36:24 -03:00
Gabriel Luiz Freitas Almeida
842ba2835a Makes build method async to support async in CC 2023-11-23 09:36:15 -03:00
Gabriel Luiz Freitas Almeida
686b97e695 Refactor eval_custom_component_code function
signature
2023-11-23 08:40:59 -03:00
Gabriel Luiz Freitas Almeida
e3c35335be Fix import statement in types.py 2023-11-23 08:40:20 -03:00
Gabriel Luiz Freitas Almeida
d7fdea2a89 Refactor loading.py: Import changes and
instantiate_custom_component modification
2023-11-23 08:40:14 -03:00
Gabriel Luiz Freitas Almeida
096f3ae1fc 🔨 refactor(utils.py): rename get_function_custom to eval_custom_component_code for better clarity and consistency
 feat(utils.py): add type hinting to eval_custom_component_code function for better code readability and maintainability
🔨 refactor(utils.py): move import statement for PromptTemplate to the correct location for better organization
🔨 refactor(utils.py): move import statement for validate to the correct location for better organization
🔨 refactor(utils.py): remove unused imports and reorganize import statements for better organization
2023-11-23 08:39:51 -03:00
Gabriel Luiz Freitas Almeida
82bd124139 Fix import order in test_custom_component.py 2023-11-23 08:39:45 -03:00
Gabriel Luiz Freitas Almeida
783c0e6436 Refactor code to dynamically create classes from
strings
2023-11-23 08:39:39 -03:00
cristhianzl
30cc5723bd Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-11-22 22:08:14 -03:00
cristhianzl
08b6739e1e fix(nodeToolbarComponent): add data-testid attribute to more options modal for easier testing
fix(floatComponent.spec): update element locator for sideLlamaCpp to llmsLlamaCpp to match changes in the codebase
fix(floatComponent.spec): update element locator for editAdvancedIcon to use getByTestId for more reliable testing
2023-11-22 22:08:04 -03:00
anovazzi1
3db17aa7b6 fix(parameterComponent): update disabled logic to include proxy property in the comparison
fix(sideBarDraggableComponent): remove unnecessary line breaks and update deleteComponent function call
2023-11-22 22:07:33 -03:00
cristhianzl
c1fa3c49ab fix(flowsContext.tsx): remove console.log statement used for debugging
fix(EditNodeModal/index.tsx): fix issue with useRef not updating properly by assigning a new object to myData.current
2023-11-22 21:57:10 -03:00
anovazzi1
339cde462f fix(GenericNode/index.tsx): fix indentation and formatting issues in the code for better readability
feat(GenericNode/index.tsx): add condition to only render ParameterComponent if base_classes array is not empty
2023-11-22 21:22:24 -03:00
Gabriel Luiz Freitas Almeida
fb3e4b88c5 Remove unused code and comments 2023-11-22 21:21:05 -03:00
Gabriel Luiz Freitas Almeida
0cc0d8b556 Fix return type in CallableCodeDetails constructor 2023-11-22 21:21:04 -03:00
Gabriel Luiz Freitas Almeida
da5fe77864 🔧 chore(utils.py): reorder imports to group loguru and langflow imports together for better readability
🐛 fix(utils.py): add raw_output parameter to get_result_and_steps function call to fix a bug where raw output was not being returned correctly
 feat(utils.py): add raw_output to the return statement of process_graph function to expose the raw output of get_result_and_steps function
2023-11-22 21:21:04 -03:00
Gabriel Luiz Freitas Almeida
5ad4da0ab9 Add support for generating a markdown table from
source documents
2023-11-22 21:21:03 -03:00
Gabriel Luiz Freitas Almeida
0a38f2d271 Add output to return statement in
get_result_and_steps function
2023-11-22 21:21:02 -03:00
Gabriel Luiz Freitas Almeida
5bd379e714 Refactor graph utils module and add
raw_topological_sort function
2023-11-22 21:21:02 -03:00