Table of Contents

Class DateTimeNowTool

Namespace
LMKit.Agents.Tools.BuiltIn.Utility
Assembly
LM-Kit.NET.dll

A built-in tool for getting the current date/time and formatting dates.

Provides the current UTC or local time and formats date strings using custom patterns.

public sealed class DateTimeNowTool : IBuiltInTool, ITool, IToolMetadata
Inheritance
DateTimeNowTool
Implements
Inherited Members

Examples

var tool = new DateTimeNowTool();
registry.Register(tool);

// Agent can now use: get current time, format dates

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.

Share