Skip to content

Commit

Permalink
Annoted the method with deprecation warning and TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
johnyrahul committed Jul 16, 2024
1 parent 6d501d4 commit c3ef8f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/workflow_manager/workflow/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
logger = logging.getLogger(__name__)


# TODO: Can be removed as not getting used with UX chnages.
class WorkflowGenerator:
"""Helps with generating a workflow using the LLM."""

Expand Down
2 changes: 2 additions & 0 deletions backend/workflow_manager/workflow/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from connector.connector_instance_helper import ConnectorInstanceHelper
from django.conf import settings
from django.db.models.query import QuerySet
from numpy import deprecate_with_doc
from permissions.permission import IsOwner
from pipeline.models import Pipeline
from pipeline.pipeline_processor import PipelineProcessor
Expand Down Expand Up @@ -78,6 +79,7 @@ def get_serializer_class(self) -> serializers.Serializer:
else:
return WorkflowSerializer

@deprecate_with_doc("Not using with the latest UX chnages")
def _generate_workflow(self, workflow_id: str) -> WorkflowGenerator:
registry_tools: list[Tool] = ToolProcessor.get_registry_tools()
generator = WorkflowGenerator(workflow_id=workflow_id)
Expand Down

0 comments on commit c3ef8f9

Please sign in to comment.