chore: Add pylint for DB-GPT core lib (#1076)

This commit is contained in:
Fangyin Cheng
2024-01-16 17:36:26 +08:00
committed by GitHub
parent 3a54d1ef9a
commit 40c853575a
79 changed files with 2213 additions and 839 deletions

View File

@@ -1,3 +1,4 @@
"""Base class for all trigger classes."""
from __future__ import annotations
from abc import ABC, abstractmethod
@@ -6,6 +7,11 @@ from ..operator.common_operator import TriggerOperator
class Trigger(TriggerOperator, ABC):
"""Base class for all trigger classes.
Now only support http trigger.
"""
@abstractmethod
async def trigger(self) -> None:
"""Trigger the workflow or a specific operation in the workflow."""