Table of Contents

Class LocaleFormatTool

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

Formats numbers, currency, dates, and percentages for a locale.

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

Examples

Formatting a price for a French audience:

using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.Utility;

var agent = Agent.CreateBuilder(model) .WithTools(t => t.Register(new LocaleFormatTool())) .Build();

var result = await agent.RunAsync("Format 1234.56 as currency in fr-FR.");

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