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 Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article