Class EncodingListTool
Lists common text encodings with their names and code pages.
Returns a catalog of widely used encodings including UTF variants, ISO standards, Windows code pages, and CJK encodings.
public sealed class EncodingListTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
EncodingListTool
- Implements
- Inherited Members
Examples
Letting an agent enumerate available encodings for a settings UI:
using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.Text;
var agent = Agent.CreateBuilder(model)
.WithTools(t => t.Register(new EncodingListTool()))
.Build();
var result = await agent.RunAsync("List the most common Japanese text encodings.");
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.