mirror of https://github.com/Mai-with-u/MaiBot.git
将 _handle_action 中的调用从 run() 改为 execute(),与 BaseAction 接口对齐。
将 _handle_action 中的调用从 run() 改为 execute(),与 BaseAction 接口对齐。pull/1291/head
parent
d5f17b1f89
commit
47816e305e
|
|
@ -414,7 +414,9 @@ class BrainChatting:
|
|||
return False, "", ""
|
||||
|
||||
# 处理动作并获取结果(固定记录一次动作信息)
|
||||
result = await action_handler.run()
|
||||
# BaseAction 定义了异步方法 execute() 作为统一执行入口
|
||||
# 这里调用 execute() 以兼容所有 Action 实现
|
||||
result = await action_handler.execute()
|
||||
success, action_text = result
|
||||
command = ""
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue