feat: 新的引入路径

This commit is contained in:
RockChinQ
2024-03-20 15:48:11 +08:00
parent 52a7c25540
commit 9855c6b8f5
5 changed files with 32 additions and 16 deletions

View File

@@ -9,6 +9,26 @@ from ..provider.tools import entities as tools_entities
from ..core import app
def register(
name: str,
description: str,
version: str,
author
) -> typing.Callable[[typing.Type[BasePlugin]], typing.Type[BasePlugin]]:
pass
def handler(
event: typing.Type[events.BaseEventModel]
) -> typing.Callable[[typing.Callable], typing.Callable]:
pass
def llm_func(
name: str=None,
) -> typing.Callable:
pass
class BasePlugin(metaclass=abc.ABCMeta):
"""插件基类"""