🔥 refactor(constants.py): remove unused import and unused CustomComponent from CUSTOM_TOOLS dictionary

The import statement for CustomComponent is no longer needed as it is not used in the CUSTOM_TOOLS dictionary. Removing the unused import and the unused CustomComponent entry from the dictionary improves code cleanliness and reduces potential confusion.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-06 23:57:17 -03:00
commit 97572bea25

View file

@ -12,13 +12,11 @@ from langflow.interface.importing.utils import import_class
from langflow.interface.tools.custom import (
PythonFunctionTool,
PythonFunction,
CustomComponent,
)
FILE_TOOLS = {"JsonSpec": JsonSpec}
CUSTOM_TOOLS = {
"Tool": Tool,
"CustomComponent": CustomComponent,
"PythonFunctionTool": PythonFunctionTool,
"PythonFunction": PythonFunction,
}