Class TextStatsTool
A built-in tool for computing text statistics.
Returns character count, word count, line count, and character count excluding whitespace.
public sealed class TextStatsTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
TextStatsTool
- Implements
- Inherited Members
Examples
var tool = new TextStatsTool();
registry.Register(tool);
// Agent can now: get word count, character count, line count for any text
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.