From a17b5246068f408c752f4b856cd295d95a07a54b Mon Sep 17 00:00:00 2001 From: Edwin Jose Date: Tue, 18 Mar 2025 17:48:47 -0400 Subject: [PATCH] feat: add legacy tag deprecated components (#7142) add legacy tag --- .../base/langflow/components/processing/alter_metadata.py | 1 + src/backend/base/langflow/components/processing/json_cleaner.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/base/langflow/components/processing/alter_metadata.py b/src/backend/base/langflow/components/processing/alter_metadata.py index a0178d04c..7a6536bb1 100644 --- a/src/backend/base/langflow/components/processing/alter_metadata.py +++ b/src/backend/base/langflow/components/processing/alter_metadata.py @@ -9,6 +9,7 @@ class AlterMetadataComponent(Component): description = "Adds/Removes Metadata Dictionary on inputs" icon = "merge" name = "AlterMetadata" + legacy = True inputs = [ HandleInput( diff --git a/src/backend/base/langflow/components/processing/json_cleaner.py b/src/backend/base/langflow/components/processing/json_cleaner.py index 93c193ae6..f7cebbb6c 100644 --- a/src/backend/base/langflow/components/processing/json_cleaner.py +++ b/src/backend/base/langflow/components/processing/json_cleaner.py @@ -14,7 +14,7 @@ class JSONCleaner(Component): "Cleans the messy and sometimes incorrect JSON strings produced by LLMs " "so that they are fully compliant with the JSON spec." ) - + legacy = True inputs = [ MessageTextInput( name="json_str", display_name="JSON String", info="The JSON string to be cleaned.", required=True