From 300d1aa050f85adeabd4b98d3a3c23d175f01784 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Tue, 20 Feb 2024 21:52:46 -0300 Subject: [PATCH] Remove is_composition attribute from custom component --- .../langflow/interface/custom/custom_component/component.py | 1 - .../interface/custom/custom_component/custom_component.py | 3 --- src/backend/langflow/interface/custom/utils.py | 1 - 3 files changed, 5 deletions(-) diff --git a/src/backend/langflow/interface/custom/custom_component/component.py b/src/backend/langflow/interface/custom/custom_component/component.py index bc8b5d31e..4188c2f3b 100644 --- a/src/backend/langflow/interface/custom/custom_component/component.py +++ b/src/backend/langflow/interface/custom/custom_component/component.py @@ -86,7 +86,6 @@ class Component: "beta": self.getattr_return_str, "documentation": self.getattr_return_str, "icon": self.validate_icon, - "is_composition": self.getattr_return_bool, } for attribute, func in attributes_func_mapping.items(): diff --git a/src/backend/langflow/interface/custom/custom_component/custom_component.py b/src/backend/langflow/interface/custom/custom_component/custom_component.py index 52f7e7be4..8a5d72073 100644 --- a/src/backend/langflow/interface/custom/custom_component/custom_component.py +++ b/src/backend/langflow/interface/custom/custom_component/custom_component.py @@ -35,9 +35,6 @@ class CustomComponent(Component): """The field configuration of the component. Defaults to an empty dictionary.""" field_order: Optional[List[str]] = None """The field order of the component. Defaults to an empty list.""" - is_composition: Optional[bool] = None - """Whether the component is used for composition. - This affects the style of the edge connecting the component to the next component. Defaults to None.""" code_class_base_inheritance: ClassVar[str] = "CustomComponent" function_entrypoint_name: ClassVar[str] = "build" function: Optional[Callable] = None diff --git a/src/backend/langflow/interface/custom/utils.py b/src/backend/langflow/interface/custom/utils.py index 5e1e9932e..ce15768e1 100644 --- a/src/backend/langflow/interface/custom/utils.py +++ b/src/backend/langflow/interface/custom/utils.py @@ -270,7 +270,6 @@ def sanitize_template_config(template_config): "documentation", "output_types", "icon", - "is_composition", } for key in template_config.copy(): if key not in attributes: