mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-20 03:57:30 +08:00
fix agent tools
This commit is contained in:
@@ -38,6 +38,12 @@ class MoviePilotTool(BaseTool, metaclass=ABCMeta):
|
||||
agent_message = await self._callback_handler.get_message()
|
||||
if agent_message:
|
||||
await self.send_tool_message(agent_message)
|
||||
# 发送执行工具说明
|
||||
explanation = kwargs.get("explanation")
|
||||
if explanation:
|
||||
if not explanation.startswith("正在"):
|
||||
explanation = "正在" + explanation
|
||||
await self.send_tool_message(f"{explanation} ...")
|
||||
return await self.run(**kwargs)
|
||||
|
||||
@abstractmethod
|
||||
|
||||
Reference in New Issue
Block a user