mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-06 08:16:00 +00:00
18 lines
384 B
Python
18 lines
384 B
Python
from abc import ABCMeta, abstractmethod
|
|
from typing import Literal
|
|
|
|
OPERATION_TYPE = Literal["frontend", "backend"]
|
|
|
|
|
|
class BaseOperation(metaclass=ABCMeta):
|
|
operation_type: OPERATION_TYPE = "frontend"
|
|
|
|
def init_workflow(self):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def run_operation(self):
|
|
raise NotImplementedError
|
|
|
|
def run_operation_backend(self):
|
|
pass
|