修正at插件from_plugin=False

This commit is contained in:
Windpicker-owo
2025-09-07 19:07:44 +08:00
parent a9a8e9a1b0
commit 1beb0b7ebc

View File

@@ -80,19 +80,12 @@ class AtAction(BaseAction):
reply_to = f"{user_name}:{at_message}" reply_to = f"{user_name}:{at_message}"
extra_info = f"你需要艾特用户 {user_name} 并回复他们说: {at_message}" extra_info = f"你需要艾特用户 {user_name} 并回复他们说: {at_message}"
from src.plugin_system.core.event_manager import event_manager
from src.plugin_system import EventType
# 触发post_llm
result = await event_manager.trigger_event(EventType.POST_LLM, permission_group="SYSTEM")
if not result.all_continue_process():
return False, f"被组件{result.get_summary().get("stopped_handlers","")}打断"
# 使用回复器生成回复 # 使用回复器生成回复
success, llm_response, prompt = await replyer.generate_reply_with_context( success, llm_response, prompt = await replyer.generate_reply_with_context(
reply_to=reply_to, reply_to=reply_to,
extra_info=extra_info, extra_info=extra_info,
enable_tool=False, # 艾特回复通常不需要工具调用 enable_tool=False, # 艾特回复通常不需要工具调用
from_plugin=True # 标识来自插件 from_plugin=False
) )
if success and llm_response: if success and llm_response: