Class DurationCalcTool
A built-in tool for duration arithmetic.
Add, subtract, compare durations, and compute time remaining until a target date.
public sealed class DurationCalcTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
DurationCalcTool
- Implements
- Inherited Members
Examples
var tool = new DurationCalcTool();
registry.Register(tool);
// Agent can now use: add/subtract durations, compare, calculate time until a deadline
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.