Package dev.langchain4j.guardrails
package dev.langchain4j.guardrails
-
ClassesClassDescriptionAn
OutputGuardrailthat will check whether or not a response can be successfully deserialized to an object of typeTfrom JSONAnInputGuardrailthat validates user messages using aModerationModelto detect potentially harmful, inappropriate, or policy-violating content.AnInputGuardrailthat detects and blocks prompt injection attempts using regular expression patterns derived from the OWASP LLM01: Prompt Injection category.