18 from enum
import IntEnum
21 class NodeMode(IntEnum):
28 def toString(self) -> str:
29 if self == NodeMode.execution:
30 return "Run workflows (worker)"
32 if self == NodeMode.endpointReserved:
33 return "Serve a single endpoint (dedicated inference)"
35 if self == NodeMode.endpointShared:
36 return "Serve multiple endpoints (shared inference)"
38 if self == NodeMode.any: