Class DurationTool
A built-in tool for duration parsing and formatting.
Parse durations like "2h30m", calculate time spans, format to human-readable.
public sealed class DurationTool : ITool
- Inheritance
-
DurationTool
- Implements
- Inherited Members
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.