Class CronTool
A built-in tool for parsing and evaluating cron expressions.
Parse cron syntax, calculate next run times, validate expressions.
public sealed class CronTool : ITool
- Inheritance
-
CronTool
- Implements
- Inherited Members
Examples
var tool = new CronTool();
registry.Register(tool);
// Agent can now: parse cron expressions, get next run times
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.