feat: add new tools for download management and enhance query capabilities

- Introduced DeleteDownloadTool, QueryDirectoriesTool, ListDirectoryTool, QueryTransferHistoryTool, and TransferFileTool to the toolset for improved download management.
- Updated __all__ exports in init.py and factory.py to include the new tools.
- Enhanced QueryDownloadsTool to support querying downloads by hash and title, providing more flexible search options and detailed results.
This commit is contained in:
jxxghp
2025-11-18 11:57:01 +08:00
parent eae1f8ee4d
commit ea646149c0
8 changed files with 652 additions and 12 deletions

View File

@@ -8,11 +8,16 @@ from app.agent.tools.impl.add_download import AddDownloadTool
from app.agent.tools.impl.query_subscribes import QuerySubscribesTool
from app.agent.tools.impl.delete_subscribe import DeleteSubscribeTool
from app.agent.tools.impl.query_downloads import QueryDownloadsTool
from app.agent.tools.impl.delete_download import DeleteDownloadTool
from app.agent.tools.impl.query_downloaders import QueryDownloadersTool
from app.agent.tools.impl.query_sites import QuerySitesTool
from app.agent.tools.impl.test_site import TestSiteTool
from app.agent.tools.impl.get_recommendations import GetRecommendationsTool
from app.agent.tools.impl.query_media_library import QueryMediaLibraryTool
from app.agent.tools.impl.query_directories import QueryDirectoriesTool
from app.agent.tools.impl.list_directory import ListDirectoryTool
from app.agent.tools.impl.query_transfer_history import QueryTransferHistoryTool
from app.agent.tools.impl.transfer_file import TransferFileTool
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
@@ -28,12 +33,17 @@ __all__ = [
"QuerySubscribesTool",
"DeleteSubscribeTool",
"QueryDownloadsTool",
"DeleteDownloadTool",
"QueryDownloadersTool",
"QuerySitesTool",
"TestSiteTool",
"UpdateSiteCookieTool",
"GetRecommendationsTool",
"QueryMediaLibraryTool",
"QueryDirectoriesTool",
"ListDirectoryTool",
"QueryTransferHistoryTool",
"TransferFileTool",
"SendMessageTool",
"QuerySchedulersTool",
"RunSchedulerTool",