feat(maizone): 新增QQ空间互通组功能,根据聊天上下文生成说说
引入了全新的“QQ空间互通组”功能。用户可以配置多个群聊为一个互通组。 在通过指令发布说说时,系统会自动获取这些群聊的近期聊天记录作为上下文,从而生成与当前讨论话题更相关的说说内容。 - 在 `config.toml` 中新增了 `[maizone_intercom]` 配置项用于定义互通组。 - 重构并增强了动态(说说)的拉取逻辑,提高了对不同数据格式的兼容性和解析的稳定性。 - 对项目中的多个文件进行了代码清理,移除了未使用的导入,使代码更加整洁。
This commit is contained in:
committed by
Windpicker-owo
parent
74c83fdc01
commit
dd9aecea14
@@ -20,6 +20,7 @@ from src.plugin_system.apis import (
|
||||
tool_api,
|
||||
permission_api,
|
||||
)
|
||||
from src.plugin_system.apis.chat_api import ChatManager as context_api
|
||||
from .logging_api import get_logger
|
||||
from .plugin_register_api import register_plugin
|
||||
|
||||
@@ -40,4 +41,5 @@ __all__ = [
|
||||
"register_plugin",
|
||||
"tool_api",
|
||||
"permission_api",
|
||||
"context_api",
|
||||
]
|
||||
|
||||
@@ -10,14 +10,12 @@ from src.plugin_system.base.component_types import (
|
||||
CommandInfo,
|
||||
EventHandlerInfo,
|
||||
PluginInfo,
|
||||
EventInfo,
|
||||
ComponentType,
|
||||
)
|
||||
from src.plugin_system.base.base_command import BaseCommand
|
||||
from src.plugin_system.base.base_action import BaseAction
|
||||
from src.plugin_system.base.base_tool import BaseTool
|
||||
from src.plugin_system.base.base_events_handler import BaseEventHandler
|
||||
from src.plugin_system.base.base_event import BaseEvent
|
||||
|
||||
logger = get_logger("component_registry")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user