Class CronNextTool
A built-in tool for computing cron execution times.
Calculate the next occurrence, enumerate multiple upcoming runs, and check whether a date matches a cron pattern.
public sealed class CronNextTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
CronNextTool
- Implements
- Inherited Members
Examples
var tool = new CronNextTool();
registry.Register(tool);
// Agent can now use: get next cron run time, list upcoming runs, check date matches
Properties
- Description
Gets a concise description of what the tool does.
- InputSchema
Gets the JSON Schema defining the expected input arguments.
- Name
Gets the stable, unique identifier for this tool.
Methods
- InvokeAsync(string, CancellationToken)
Executes the tool with the specified JSON arguments.