Skip to content

[WIP] Add timed option for Agent tasks to trigger every intervals#499

Draft
Copilot wants to merge 8 commits intoDeveloper-3DAgentsfrom
copilot/add-timed-option-for-agent-tasks
Draft

[WIP] Add timed option for Agent tasks to trigger every intervals#499
Copilot wants to merge 8 commits intoDeveloper-3DAgentsfrom
copilot/add-timed-option-for-agent-tasks

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 5, 2026

  • Task 1: Scheduling UI in "启动群组" drawer - DONE
  • Task 4: Background scheduled task dispatcher - DONE
  • Task 2: Admin AI Chat "Agents Task" mode - DONE
    • Create AgentTaskPlugin with ListAvailableGroups, CreateAndRunAgentTask, CreateGroupWithAgents kernel functions
    • Add [FunctionRender] attributes to AgentTaskPlugin methods so AdminChatAiService can discover them from FunctionRenderCollection
    • CreateGroupWithAgents: auto-creates Agent, ChatGroup, ChatGroupMember and starts first task - following the same pattern as PromptOptimizationService.EnsureInitializedAsync
    • Update AdminChatAiService.BuildSystemMessage to inject Agents Task workflow guidance when AgentsManager module UID is in session
    • Add "Agents 任务" toggle button to Chat launcher (Chat.cshtml)
    • Add "Agents 任务" toggle button to active chat input area (Chat.cshtml)
    • Update ChatLauncherMixin.js: add isAgentsTaskMode/AGENTS_MANAGER_UID data, toggleAgentsTaskMode method (auto-adds AgentsManager module), Agents Task prefix in startChatSession
    • Update Chat.js: add isAgentsTaskMode data, toggleAgentsTaskMode method, prefix message in sendMessage

…th scheduled task support

- Add IsScheduled, ScheduleIntervalMinutes, ScheduleType fields to ChatTask entity
- Update ChatTaskDto with new schedule fields
- Add migrations for all 6 database types (SQLite, SqlServer, MySql, PostgreSQL, Oracle, Dm)
- Update all model snapshots with new fields
- Update GetList API to support statusFilter and isScheduled filter parameters
- Fix frontend filter criteria to match actual ChatTask_Status enum values (0-4)
- Add characteristic filter (All/Scheduled/One-time) to filter popover
- Fix handleFilterCriteria to actually call API after filter changes
- Add active filter tags row showing active filters
- Add visual status icons and scheduled badge in sidebar task list
- Add Status and Type columns in task table with colored tags
- Add scheduled task indicator (clock icon) in task detail view
- Update getInterfaceQueryStr to support boolean values in query strings

Agent-Logs-Url: https://github.com/NeuCharFramework/NcfPackageSources/sessions/2a87521f-02ff-47a8-a19b-400eb9c4b8e0

Co-authored-by: JeffreySu <2281927+JeffreySu@users.noreply.github.com>
… doc improvements

- Fix SQLite model snapshot: ScheduleIntervalMinutes int -> int?
- Simplify AppService: remove redundant scheduledValue var, use isScheduled!.Value directly
- Fix JS label: 'All' -> 'All Statuses' for status filter criteria
- Improve ChatTask.ScheduleIntervalMinutes XML docs with clear per-ScheduleType semantics
- Improve ChatTask.ScheduleType summary comment

Agent-Logs-Url: https://github.com/NeuCharFramework/NcfPackageSources/sessions/f82c6525-dfcd-404d-8bef-de2539238c78

Co-authored-by: JeffreySu <2281927+JeffreySu@users.noreply.github.com>
…on-path-issue

Fix Add-Migration command failing on Linux in XncfBuilder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants