refactor: Deprecate Subflow and Flow as Tool component in favor of RunFlow (#5678)
* depreciated subflow and flow as tool
* 🐛 (filterSidebar.spec.ts): update test cases to reflect changes in sidebar item names by adding [Deprecated] suffix
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
This commit is contained in:
parent
040a84ed52
commit
aa5a4a505c
3 changed files with 9 additions and 7 deletions
|
|
@ -14,12 +14,12 @@ from langflow.schema.dotdict import dotdict
|
|||
|
||||
|
||||
class FlowToolComponent(LCToolComponent):
|
||||
display_name = "Flow as Tool"
|
||||
display_name = "Flow as Tool [Deprecated]"
|
||||
description = "Construct a Tool from a function that runs the loaded Flow."
|
||||
field_order = ["flow_name", "name", "description", "return_direct"]
|
||||
trace_type = "tool"
|
||||
name = "FlowTool"
|
||||
beta = True
|
||||
legacy: bool = True
|
||||
icon = "hammer"
|
||||
|
||||
async def get_flow_names(self) -> list[str]:
|
||||
|
|
|
|||
|
|
@ -12,10 +12,10 @@ from langflow.schema import Data, dotdict
|
|||
|
||||
|
||||
class SubFlowComponent(Component):
|
||||
display_name = "Sub Flow"
|
||||
display_name = "Sub Flow [Deprecated]"
|
||||
description = "Generates a Component from a Flow, with all of its inputs, and "
|
||||
name = "SubFlow"
|
||||
beta: bool = True
|
||||
legacy: bool = True
|
||||
icon = "Workflow"
|
||||
|
||||
async def get_flow_names(self) -> list[str]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue