InjectionPattern

org.llm4s.agent.guardrails.builtin.InjectionPattern
See theInjectionPattern companion object
final case class InjectionPattern(name: String, regex: Regex, category: InjectionCategory, severity: Int)

Pattern for detecting a specific type of injection.

Value parameters

category

Type of injection attack

name

Human-readable name for the pattern

regex

Regular expression to match

severity

Severity level (1=low, 2=medium, 3=high)

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product