Table of Contents

Class SchedulerTools

Namespace
JD.AI.Core.Tools
Assembly
JD.AI.Core.dll

Scheduled task management tools — create, list, update, and remove recurring or one-shot tasks. Tasks are stored in-memory for the current session; persistence is optional via SessionStore.

[ToolPlugin("scheduler", RequiresInjection = true)]
public sealed class SchedulerTools
Inheritance
SchedulerTools
Inherited Members

Methods

AddTask(string, string, string, string?)

[KernelFunction("cron_add")]
[ToolSafetyTier(SafetyTier.ConfirmOnce)]
public string AddTask(string name, string schedule, string command, string? description = null)

Parameters

name string
schedule string
command string
description string

Returns

string

GetTaskHistory(int)

[KernelFunction("cron_history")]
[ToolSafetyTier(SafetyTier.AutoApprove)]
public string GetTaskHistory(int taskId)

Parameters

taskId int

Returns

string

ListTasks()

[KernelFunction("cron_list")]
[ToolSafetyTier(SafetyTier.AutoApprove)]
public string ListTasks()

Returns

string

RemoveTask(int)

[KernelFunction("cron_remove")]
[ToolSafetyTier(SafetyTier.ConfirmOnce)]
public string RemoveTask(int taskId)

Parameters

taskId int

Returns

string

RunTask(int)

[KernelFunction("cron_run")]
[ToolSafetyTier(SafetyTier.ConfirmOnce)]
public string RunTask(int taskId)

Parameters

taskId int

Returns

string

UpdateTask(int, string?, string?, string?)

[KernelFunction("cron_update")]
[ToolSafetyTier(SafetyTier.ConfirmOnce)]
public string UpdateTask(int taskId, string? schedule = null, string? command = null, string? status = null)

Parameters

taskId int
schedule string
command string
status string

Returns

string