Route autonomous agent tasks through notification broadcasting

This commit is contained in:
jxxghp
2026-07-20 08:54:32 +08:00
parent 5588e37c6d
commit d666134ed2
20 changed files with 676 additions and 116 deletions

View File

@@ -27,10 +27,12 @@ class QueryAgentTasksTool(MoviePilotTool):
"""查询当前用户创建的 Agent 自主定时任务。"""
name: str = "query_agent_tasks"
tags: list[str] = [ToolTag.Read, ToolTag.Scheduler, ToolTag.Admin]
tags: list[str] = [ToolTag.Read, ToolTag.AgentTask, ToolTag.Admin]
description: str = (
"Query persistent autonomous agent tasks, including their task content, exact "
"date or cron trigger, enabled state, next run time, and latest execution result."
"Query persistent autonomous agent tasks owned by the current user, including "
"reminders, monitoring tasks, and recurring agent work. Returns the integer "
"task_id, instructions, trigger, enabled state, next run time, and latest result. "
"Do not use this for MoviePilot system, plugin, or workflow scheduler services."
)
args_schema: Type[BaseModel] = QueryAgentTasksInput
require_admin: bool = True