Skip to content

Commit bf32bdd

Browse files
lucaseduoliautofix-ci[bot]carlosrcoelho
authored
fix: delete unused components, delete [deprecated] tag on the component title, add Replace and legacy tag functionality to components (#9645)
* Remove deprecated components * Removed deprecated tags * removed mcp deprecated components * Add new applyComponentFilter * add replacement to node parameters * added filtercomponent to flow store * Added replacement to api class type * Made sidebar filter component more modular * remove unused props and pass props to filtercomponent * Apply component filters and get name and description for filter * Add resetting to handle and page * Added types to sidebar header * Added legacy and replacement to node description, activate component filter on click * updated sidebar header test * format test * update sidebar filter component test to match current behavior * Refactor to allow multiple replacements * removed legacy from node description * added dismissed legacy nodes * removed unused props * add node legacy component * changed replacement type to list * Instantiate nodelegacycomponent on generic node when component is legacy * Add components filtering in nodelegacycomponent * added replacement instead of display name * Added legacy tag to component name * Add replacement to some components * Added replacements to majority of legacy components * Made component name not be capitalized * fixed bundles not appearing at component filter * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * added replacement for crew ai --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Carlos Coelho <[email protected]>
1 parent f51575e commit bf32bdd

File tree

70 files changed

+533
-567
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+533
-567
lines changed

src/backend/base/langflow/components/crewai/crewai.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class CrewAIAgentComponent(Component):
2121
documentation: str = "https://docs.crewai.com/how-to/LLM-Connections/"
2222
icon = "CrewAI"
2323
legacy = True
24+
replacement = "agents.Agent"
2425

2526
inputs = [
2627
MultilineInput(name="role", display_name="Role", info="The role of the agent."),

src/backend/base/langflow/components/crewai/hierarchical_crew.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class HierarchicalCrewComponent(BaseCrewComponent):
1010
documentation: str = "https://docs.crewai.com/how-to/Hierarchical/"
1111
icon = "CrewAI"
1212
legacy = True
13+
replacement = "agents.Agent"
1314

1415
inputs = [
1516
*BaseCrewComponent._base_inputs,

src/backend/base/langflow/components/crewai/hierarchical_task.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class HierarchicalTaskComponent(Component):
88
description: str = "Each task must have a description, an expected output and an agent responsible for execution."
99
icon = "CrewAI"
1010
legacy = True
11+
replacement = "agents.Agent"
1112
inputs = [
1213
MultilineInput(
1314
name="task_description",

src/backend/base/langflow/components/crewai/sequential_crew.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class SequentialCrewComponent(BaseCrewComponent):
99
documentation: str = "https://docs.crewai.com/how-to/Sequential/"
1010
icon = "CrewAI"
1111
legacy = True
12+
replacement = "agents.Agent"
1213

1314
inputs = [
1415
*BaseCrewComponent._base_inputs,

src/backend/base/langflow/components/crewai/sequential_task.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class SequentialTaskComponent(Component):
88
description: str = "Each task must have a description, an expected output and an agent responsible for execution."
99
icon = "CrewAI"
1010
legacy = True
11+
replacement = "agents.Agent"
1112
inputs = [
1213
MultilineInput(
1314
name="task_description",

src/backend/base/langflow/components/crewai/sequential_task_agent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class SequentialTaskAgentComponent(Component):
99
documentation = "https://docs.crewai.com/how-to/LLM-Connections/"
1010
icon = "CrewAI"
1111
legacy = True
12+
replacement = "agents.Agent"
1213

1314
inputs = [
1415
# Agent inputs

src/backend/base/langflow/components/data/csv_to_data.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class CSVToDataComponent(Component):
1313
icon = "file-spreadsheet"
1414
name = "CSVtoData"
1515
legacy = True
16+
replacement = ["data.File"]
1617

1718
inputs = [
1819
FileInput(

src/backend/base/langflow/components/data/json_to_data.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class JSONToDataComponent(Component):
1616
icon = "braces"
1717
name = "JSONtoData"
1818
legacy = True
19+
replacement = ["data.File"]
1920

2021
inputs = [
2122
FileInput(

src/backend/base/langflow/components/datastax/astra_vectorize.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@
66

77

88
class AstraVectorizeComponent(Component):
9-
display_name: str = "Astra Vectorize [DEPRECATED]"
10-
description: str = (
11-
"Configuration options for Astra Vectorize server-side embeddings. "
12-
"This component is deprecated. Please use the Astra DB Component directly."
13-
)
9+
display_name: str = "Astra Vectorize"
10+
description: str = "Configuration options for Astra Vectorize server-side embeddings. "
1411
documentation: str = "https://docs.datastax.com/en/astra-db-serverless/databases/embedding-generation.html"
1512
legacy = True
1613
icon = "AstraDB"
1714
name = "AstraVectorize"
15+
replacement = ["datastax.AstraDB"]
1816

1917
VECTORIZE_PROVIDERS_MAPPING = {
2018
"Azure OpenAI": ["azureOpenAI", ["text-embedding-3-small", "text-embedding-3-large", "text-embedding-ada-002"]],

src/backend/base/langflow/components/deactivated/mcp_sse.py

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)