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: