Class TimeZoneConvertTool
A built-in tool for converting times between time zones.
Convert datetimes across zones, get the current time in any zone, query UTC offsets, and check DST status.
public sealed class TimeZoneConvertTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
TimeZoneConvertTool
- Implements
- Inherited Members
Examples
var tool = new TimeZoneConvertTool();
registry.Register(tool);
// Agent can now use: convert between time zones, get current time, check DST
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.