Table of Contents

Class RegexTool

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

A built-in tool for advanced regular expression operations.

Match patterns, extract named groups, replace with patterns, split text.

public sealed class RegexTool : ITool
Inheritance
RegexTool
Implements
Inherited Members

Examples

var tool = new RegexTool();
registry.Register(tool);

// Agent can now: match patterns, extract data, validate formats

Constructors

RegexTool()

Initializes a new instance with default settings.

RegexTool(RegexToolOptions)

Initializes a new instance with custom options.

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.