Class ScheduleNextTool
Compute next schedule occurrences, find conflicts between schedules.
public sealed class ScheduleNextTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
ScheduleNextTool
- Implements
- Inherited Members
Examples
Resolving the next 5 fire-times of a cron schedule:
using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.Utility;
var agent = Agent.CreateBuilder(model)
.WithTools(t => t.Register(new ScheduleNextTool()))
.Build();
var result = await agent.RunAsync("When does '0 9 * * MON-FRI' next fire? Show the next 5 occurrences.");
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.