Class RegexMatchTool
A built-in tool for matching regex patterns against text.
Supports finding the first match, all matches, testing if a pattern matches, and extracting named capture groups.
public sealed class RegexMatchTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
RegexMatchTool
- Implements
- Inherited Members
Examples
var tool = new RegexMatchTool();
registry.Register(tool);
// Agent can now: match patterns, test text, extract named groups
Constructors
- RegexMatchTool()
Initializes a new instance with default settings.
- RegexMatchTool(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.