Class ScheduleParseTool
Parse and describe recurring schedule definitions.
public sealed class ScheduleParseTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
ScheduleParseTool
- Implements
- Inherited Members
Examples
Translating a cron expression into plain English:
using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.Utility;
var agent = Agent.CreateBuilder(model)
.WithTools(t => t.Register(new ScheduleParseTool()))
.Build();
var result = await agent.RunAsync("Describe what '*/15 9-17 * * MON-FRI' means in plain English.");
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.