🚀 feat(listing.py): add support for custom components in the type dictionary

The type dictionary now includes a new key "custom_components" which contains a list of custom components created using the custom_component_creator. This allows for better organization and management of custom components within the application.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-06 23:53:38 -03:00
commit f41cd1905f

View file

@ -13,6 +13,7 @@ from langflow.interface.vector_store.base import vectorstore_creator
from langflow.interface.wrappers.base import wrapper_creator
from langflow.interface.output_parsers.base import output_parser_creator
from langflow.interface.retrievers.base import retriever_creator
from langflow.interface.custom.base import custom_component_creator
def get_type_dict():
@ -32,6 +33,7 @@ def get_type_dict():
"utilities": utility_creator.to_list(),
"outputParsers": output_parser_creator.to_list(),
"retrievers": retriever_creator.to_list(),
"custom_components": custom_component_creator.to_list(),
}