This commit is contained in:
jxxghp
2025-10-18 21:32:46 +08:00
parent bdd5f1231e
commit ee71bafc96
2 changed files with 5 additions and 7 deletions

View File

@@ -26,13 +26,12 @@ class MoviePilotTool(BaseTool):
async def _arun(self, **kwargs) -> str:
raise NotImplementedError
def _send_tool_message(self, message: str, message_type: str = "info"):
def _send_tool_message(self, message: str, **kwargs):
"""发送工具执行消息"""
try:
self._message_helper.put(
message=message,
role="system",
title=f"AI工具执行 ({message_type})"
role="system"
)
except Exception as e:
logger.error(f"发送工具消息失败: {e}")