Move some enumerate type to constants.py (#10998)

### What problem does this PR solve?

As title.

### Type of change

- [x] Refactoring

---------

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2025-11-04 19:25:25 +08:00
committed by GitHub
parent 465a140727
commit 880a6a0428
28 changed files with 127 additions and 40 deletions

View File

@ -65,13 +65,6 @@ class LLMType(StrEnum):
TTS = 'tts'
class ChatStyle(StrEnum):
CREATIVE = 'Creative'
PRECISE = 'Precise'
EVENLY = 'Evenly'
CUSTOM = 'Custom'
class TaskStatus(StrEnum):
UNSTART = "0"
RUNNING = "1"
@ -124,17 +117,10 @@ class InputType(StrEnum):
SLIM_RETRIEVAL = "slim_retrieval"
class CanvasType(StrEnum):
ChatBot = "chatbot"
DocBot = "docbot"
class CanvasCategory(StrEnum):
Agent = "agent_canvas"
DataFlow = "dataflow_canvas"
VALID_CANVAS_CATEGORIES = {CanvasCategory.Agent, CanvasCategory.DataFlow}
class MCPServerType(StrEnum):
SSE = "sse"