common.py 412 B

1234567891011121314151617181920212223
  1. # coding=utf-8
  2. """
  3. @project: MaxKB
  4. @Author:虎虎
  5. @file: common.py
  6. @date:2026/3/27 19:54
  7. @desc:
  8. """
  9. from abc import ABC, abstractmethod
  10. class BaseToolTriggerTask(ABC):
  11. """
  12. 任务执行器抽象
  13. """
  14. @abstractmethod
  15. def support(self, tool, trigger_task, **kwargs):
  16. pass
  17. @abstractmethod
  18. def execute(self, tool, trigger_task, **kwargs):
  19. pass