mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-11 16:26:02 +00:00
feat: 新的引入路径
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
# 此模块已过时,请引入 pkg.plugin.context 中的 register, handler 和 llm_func 来注册插件、事件处理函数和内容函数
|
||||
# 各个事件模型请从 pkg.plugin.events 引入
|
||||
# 最早将于 v3.4 移除此模块
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import typing
|
||||
@@ -24,15 +28,3 @@ def func(
|
||||
name: str=None,
|
||||
) -> typing.Callable:
|
||||
pass
|
||||
|
||||
|
||||
def handler(
|
||||
event: typing.Type[BaseEventModel]
|
||||
) -> typing.Callable[[typing.Callable], typing.Callable]:
|
||||
pass
|
||||
|
||||
|
||||
def llm_func(
|
||||
name: str=None,
|
||||
) -> typing.Callable:
|
||||
pass
|
||||
Reference in New Issue
Block a user