feat: add new tools for subscription management and scheduling

- Introduced DeleteSubscribeTool for managing subscriptions.
- Added QuerySchedulersTool and RunSchedulerTool for enhanced scheduling capabilities.
- Updated __all__ exports in init.py and factory.py to include new tools.
This commit is contained in:
jxxghp
2025-11-18 08:34:00 +08:00
parent 8296f8d2da
commit e1098b34e8
5 changed files with 170 additions and 1 deletions

View File

@@ -10,9 +10,12 @@ from app.agent.tools.impl.query_downloads import QueryDownloadsTool
from app.agent.tools.impl.query_media_library import QueryMediaLibraryTool
from app.agent.tools.impl.query_sites import QuerySitesTool
from app.agent.tools.impl.query_subscribes import QuerySubscribesTool
from app.agent.tools.impl.delete_subscribe import DeleteSubscribeTool
from app.agent.tools.impl.search_media import SearchMediaTool
from app.agent.tools.impl.search_torrents import SearchTorrentsTool
from app.agent.tools.impl.send_message import SendMessageTool
from app.agent.tools.impl.query_schedulers import QuerySchedulersTool
from app.agent.tools.impl.run_scheduler import RunSchedulerTool
from app.core.plugin import PluginManager
from app.log import logger
from .base import MoviePilotTool
@@ -33,12 +36,15 @@ class MoviePilotToolFactory:
SearchTorrentsTool,
AddDownloadTool,
QuerySubscribesTool,
DeleteSubscribeTool,
QueryDownloadsTool,
QueryDownloadersTool,
QuerySitesTool,
GetRecommendationsTool,
QueryMediaLibraryTool,
SendMessageTool
SendMessageTool,
QuerySchedulersTool,
RunSchedulerTool
]
# 创建内置工具
for ToolClass in tool_definitions: