plugin_manager 重新拆分,增加扩展
This commit is contained in:
9
src/plugin_system/events/__init__.py
Normal file
9
src/plugin_system/events/__init__.py
Normal file
@@ -0,0 +1,9 @@
|
||||
"""
|
||||
插件的事件系统模块
|
||||
"""
|
||||
|
||||
from .events import EventType
|
||||
|
||||
__all__ = [
|
||||
"EventType",
|
||||
]
|
||||
14
src/plugin_system/events/events.py
Normal file
14
src/plugin_system/events/events.py
Normal 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"
|
||||
Reference in New Issue
Block a user