Class HumanizeTextTool
Humanize text: natural language lists, relative time, truncation, pluralization.
public sealed class HumanizeTextTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
HumanizeTextTool
- Implements
- Inherited Members
Examples
Producing a friendly relative-time string:
using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.Utility;
var agent = Agent.CreateBuilder(model)
.WithTools(t => t.Register(new HumanizeTextTool()))
.Build();
var result = await agent.RunAsync("Render 2025-12-31T17:30:00Z as a friendly relative time.");
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.