Uses of Interface
io.quarkiverse.langchain4j.guardrails.Guardrail
Packages that use Guardrail
-
Uses of Guardrail in io.quarkiverse.langchain4j.audit
Classes in io.quarkiverse.langchain4j.audit with type parameters of type GuardrailModifier and TypeInterfaceDescriptioninterface
GuardrailExecutedEvent<P extends GuardrailParams,
R extends GuardrailResult<R>, G extends Guardrail<P, R>> Represents an event that is executed when a guardrail validation occurs. -
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.Classes in io.quarkiverse.langchain4j.guardrails that implement GuardrailMethods in io.quarkiverse.langchain4j.guardrails that return types with arguments of type GuardrailModifier and TypeMethodDescriptionGuardrailResult.Failure.guardrailClass()
InputGuardrailResult.Failure.guardrailClass()
Returns the value of theguardrailClass
record component.OutputGuardrailResult.Failure.guardrailClass()
Returns the value of theguardrailClass
record component.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) InputGuardrailResult.Failure.withGuardrailClass
(Class<? extends Guardrail> guardrailClass) OutputGuardrailResult.Failure.withGuardrailClass
(Class<? extends Guardrail> guardrailClass) Constructor parameters in io.quarkiverse.langchain4j.guardrails with type arguments of type Guardrail