Commit graph

2,176 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
2c6962b86d Fix user_id modification and add warning 2023-11-24 11:21:24 -03:00
Gabriel Luiz Freitas Almeida
c53775ddf9 Fix user_id modification in Component class 2023-11-24 11:19:25 -03:00
Gabriel Luiz Freitas Almeida
f52b7177f7 Refactor API router and add credentials router 2023-11-24 11:19:24 -03:00
Gabriel Luiz Freitas Almeida
5cd212a0f2 Add CredentialService to handle user credentials 2023-11-24 11:19:23 -03:00
Gabriel Luiz Freitas Almeida
74ac238a4e Adds Credential table 2023-11-24 11:19:23 -03:00
Gabriel Luiz Freitas Almeida
9d6cafd8a2 Update database model imports 2023-11-24 11:19:22 -03:00
Gabriel Luiz Freitas Almeida
37e7c99ca2 Add metadata and comp_count variables 2023-11-23 17:43:30 -03:00
Gabriel Luiz Freitas Almeida
5dc419e25f Fix APIKeyError status code 2023-11-23 17:30:05 -03:00
Gabriel Luiz Freitas Almeida
595006cb77 Update AgentInitializerComponent to initialize a
Langchain Agent
2023-11-23 17:30:05 -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
783c0e6436 Refactor code to dynamically create classes from
strings
2023-11-23 08:39:39 -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
Gabriel Luiz Freitas Almeida
98bacf5f74 Refactor graph base module 2023-11-22 21:21:01 -03:00
Gabriel Luiz Freitas Almeida
a0c985d426 Fix import formatting 2023-11-22 21:21:00 -03:00