| from langflow.custom import CustomComponent | |
| from langflow.schema import Data | |
| class ListFlowsComponent(CustomComponent): | |
| display_name = "List Flows" | |
| description = "A component to list all available flows." | |
| icon = "ListFlows" | |
| beta: bool = True | |
| name = "ListFlows" | |
| def build_config(self): | |
| return {} | |
| def build( | |
| self, | |
| ) -> list[Data]: | |
| flows = self.list_flows() | |
| self.status = flows | |
| return flows | |