将 _handle_action 中的调用从 run() 改为 execute(),与 BaseAction 接口对齐。

将 _handle_action 中的调用从 run() 改为 execute(),与 BaseAction 接口对齐。
pull/1291/head
exynos 2025-10-12 19:19:11 +08:00 committed by GitHub
parent d5f17b1f89
commit 47816e305e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 571 additions and 569 deletions

View File

@ -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 = ""