plugin_manager 重新拆分,增加扩展

This commit is contained in:
UnCLAS-Prommer
2025-07-07 12:13:33 +08:00
parent 3c46d996fe
commit bed9c2bf6b
5 changed files with 827 additions and 403 deletions

View File

@@ -0,0 +1,9 @@
"""
插件的事件系统模块
"""
from .events import EventType
__all__ = [
"EventType",
]

View File

@@ -0,0 +1,14 @@
from enum import Enum
class EventType(Enum):
"""
事件类型枚举类
"""
ON_MESSAGE = "on_message"
ON_PLAN = "on_plan"
POST_LLM = "post_llm"
AFTER_LLM = "after_llm"
POST_SEND = "post_send"
AFTER_SEND = "after_send"