Path: redb-route/redb.Route.Llm.Tools/RegexExtractOptions.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Llm.Tools/RegexExtractOptions.cs
----
namespace redb.Route.Llm.Tools;
///
/// Configuration for .
///
public sealed class RegexExtractOptions
{
/// Endpoint URI the tool is mounted on. Default "direct:llm.regex_extract".
public string EndpointUri { get; init; } = "direct:llm.regex_extract";
/// Tool name exposed to the model. Default "regex_extract".
public string ToolName { get; init; } = "regex_extract";
///
/// Maximum length of the inbound text in characters. Default 1 MiB.
///
public int MaxTextChars { get; init; } = 1_048_576;
///
/// Per-pattern execution timeout. Default 1 second. Guards against catastrophic
/// backtracking when the model produces a pathological pattern.
///
public TimeSpan MatchTimeout { get; init; } = TimeSpan.FromSeconds(1);
///
/// Maximum number of matches returned in array mode. Default 64.
///
public int MaxMatches { get; init; } = 64;
}