RegexValidator

org.llm4s.agent.guardrails.builtin.RegexValidator
See theRegexValidator companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

Validator for alphanumeric content only.

Validator for alphanumeric content only.

Attributes

def apply(pattern: String): RegexValidator

Create a regex validator from a pattern string.

Create a regex validator from a pattern string.

Attributes

def apply(pattern: Regex): RegexValidator

Create a regex validator from a Regex object.

Create a regex validator from a Regex object.

Attributes

def apply(pattern: String, errorMessage: String): RegexValidator

Create a regex validator with custom error message.

Create a regex validator with custom error message.

Attributes

Validator for email addresses (basic pattern).

Validator for email addresses (basic pattern).

Attributes

Validator for phone numbers (basic pattern).

Validator for phone numbers (basic pattern).

Attributes