You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✨ add ScheduledTaskTool with global scheduler and frontend polling
Add a scheduled task tool that enables agents to create, list, and cancel
cron-based or one-shot scheduled tasks. The architecture uses a global
scheduler singleton (independent of agent lifecycle), DB persistence, and
frontend polling for real-time message delivery.
Changes:
- SDK: ScheduledTaskTool as thin CRUD wrapper with cron parser
- Backend: global ScheduledTaskScheduler (10s DB poll), scheduled_task_db
- Backend: new_messages polling API + batch endpoint
- Backend: conversation_id passthrough for task-to-session binding
- Backend: scheduler strips ScheduledTaskTool from triggered agent to
prevent recursive task creation
- Frontend: two-layer polling (5s active, 10s background conversations)
- DB: scheduled_tasks_t table with multi-tenant fields
No existing Nexent logic is modified — all changes are additive.
0 commit comments