Class DateTimeTool
A built-in tool for date and time operations.
Provides current time, date formatting, parsing, and calculations.
public sealed class DateTimeTool : ITool
- Inheritance
-
DateTimeTool
- Implements
- Inherited Members
Examples
var tool = new DateTimeTool();
registry.Register(tool);
// Agent can now use: get current time, format dates, calculate date differences
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.