dify/api/enums/__init__.py
2024-10-14 16:47:03 +08:00

35 lines
523 B
Python

from enum import Enum
from .workflow_nodes import NodeType
class CreatedByRole(str, Enum):
"""
TODO: Need to write docstring
"""
ACCOUNT = "account"
END_USER = "end_user"
class UserFrom(str, Enum):
"""
TODO: Need to write docstring
"""
ACCOUNT = "account"
END_USER = "end-user"
class WorkflowRunTriggeredFrom(str, Enum):
DEBUGGING = "debugging"
APP_RUN = "app-run"
__all__ = [
"NodeType",
"CreatedByRole",
"UserFrom",
"WorkflowRunTriggeredFrom",
]