mirror of
https://github.com/YFGaia/dify-plus.git
synced 2026-06-04 10:14:00 +08:00
ebc4fdc4b2
Signed-off-by: neatguycoding <15627489+NeatGuyCoding@users.noreply.github.com>
33 lines
546 B
Python
33 lines
546 B
Python
from enum import StrEnum
|
|
|
|
|
|
class CreatorUserRole(StrEnum):
|
|
ACCOUNT = "account"
|
|
END_USER = "end_user"
|
|
|
|
|
|
class UserFrom(StrEnum):
|
|
ACCOUNT = "account"
|
|
END_USER = "end-user"
|
|
|
|
|
|
class WorkflowRunTriggeredFrom(StrEnum):
|
|
DEBUGGING = "debugging"
|
|
APP_RUN = "app-run"
|
|
|
|
|
|
class DraftVariableType(StrEnum):
|
|
# node means that the correspond variable
|
|
NODE = "node"
|
|
SYS = "sys"
|
|
CONVERSATION = "conversation"
|
|
|
|
|
|
class MessageStatus(StrEnum):
|
|
"""
|
|
Message Status Enum
|
|
"""
|
|
|
|
NORMAL = "normal"
|
|
ERROR = "error"
|