Uses of Interface
io.quarkiverse.langchain4j.guardrails.Guardrail
Packages that use Guardrail
-
Uses of Guardrail in io.quarkiverse.langchain4j.guardrails
Subinterfaces of Guardrail in io.quarkiverse.langchain4j.guardrailsModifier and TypeInterfaceDescriptioninterface
An input guardrail is a rule that is applied to the input of the model to ensure that the input (the user message) is safe and meets the expectations of the model.interface
An output guardrail is a rule that is applied to the output of the model to ensure that the output is safe and meets the expectations.Method parameters in io.quarkiverse.langchain4j.guardrails with type arguments of type GuardrailModifier and TypeMethodDescriptionGuardrailResult.validatedBy
(Class<? extends Guardrail> guardrailClass) InputGuardrailResult.validatedBy
(Class<? extends Guardrail> guardrailClass) OutputGuardrailResult.validatedBy
(Class<? extends Guardrail> guardrailClass) GuardrailResult.Failure.withGuardrailClass
(Class<? extends Guardrail> guardrailClass)