Class HumanizeNumberTool
Humanize numbers: format with words, byte sizes (KB/MB/GB), ordinals (1st, 2nd).
public sealed class HumanizeNumberTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
HumanizeNumberTool
- Implements
- Inherited Members
Examples
Formatting raw byte counts as human-readable sizes:
using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.Utility;
var agent = Agent.CreateBuilder(model)
.WithTools(t => t.Register(new HumanizeNumberTool()))
.Build();
var result = await agent.RunAsync("Format 1572864 as a byte size.");
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.