Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
refactor(api): deduplicate ImportMode and ImportStatus enums from rag_pipeline_dsl_service (#34759)
Jake Armstrong8f46c9113c3b
diff --git a/api/services/rag_pipeline/rag_pipeline_dsl_service.py b/api/services/rag_pipeline/rag_pipeline_dsl_service.pyindex 04156713f4f..e42c0209250 100644--- a/api/services/rag_pipeline/rag_pipeline_dsl_service.py+++ b/api/services/rag_pipeline/rag_pipeline_dsl_service.py@@ -5,7 +5,6 @@ import loggingimport uuidfrom collections.abc import Mappingfrom datetime import UTC, datetime-from enum import StrEnumfrom typing import castfrom urllib.parse import urlparsefrom uuid import uuid4@@ -38,6 +37,7 @@ from models import Accountfrom models.dataset import Dataset, DatasetCollectionBinding, Pipelinefrom models.enums import CollectionBindingType, DatasetRuntimeModefrom models.workflow import Workflow, WorkflowType+from services.app_dsl_service import ImportMode, ImportStatusfrom services.entities.knowledge_entities.rag_pipeline_entities import (IconInfo,KnowledgeConfiguration,@@ -54,18 +54,6 @@ DSL_MAX_SIZE = 10 * 1024 * 1024 # 10MBCURRENT_DSL_VERSION = "0.1.0"-class ImportMode(StrEnum):- YAML_CONTENT = "yaml-content"- YAML_URL = "yaml-url"---class ImportStatus(StrEnum):- COMPLETED = "completed"- COMPLETED_WITH_WARNINGS = "completed-with-warnings"- PENDING = "pending"- FAILED = "failed"--class RagPipelineImportInfo(BaseModel):id: strstatus: ImportStatus