Uses of Package
dev.langchain4j.guardrail
Packages that use dev.langchain4j.guardrail
Package
Description
-
Classes in dev.langchain4j.guardrail used by dev.langchain4j.guardrailClassDescriptionAbstract base class for
GuardrailExecutor
s.A generic abstract builder class for creating instances ofGuardrailExecutor
.Generic executor interface that defines a chat interactionAn abstract base-builder class for constructing instances ofChatExecutor
.StreamingToSynchronousBuilder for constructing instances ofChatExecutor
.SynchronousBuilder for constructing instances ofChatExecutor
.A guardrail is a rule that is applied when interacting with an LLM either to the input (the user message) or to the output of the model to ensure that they are safe and meet the expectations of the model.Exception thrown when an input or output guardrail validation fails.Represents a mechanism to execute a set of guardrails on given parameters.Represents the parameter passed toGuardrail.validate(GuardrailRequest)
} in order to validate an interaction between a user and the LLM.Represents the common parameters shared across guardrail checks when validating interactions between a user and a language model.Builder forGuardrailRequestParams
.The result of the validation of an interaction between a user and the LLM.The message and the cause of the failure of a single validation.The possible results of a guardrails validation.An input guardrail is a rule that is applied to the input of the model to ensure that the input (i.e.Exception thrown when an input guardrail validation fails.TheGuardrailExecutor
forInputGuardrail
s.Builder class for constructing instances ofInputGuardrailExecutor
.Represents the parameter passed toInputGuardrail.validate(InputGuardrailRequest)
.Builder forInputGuardrailRequest
.The result of the validation of anInputGuardrail
Represents an input guardrail failureAn 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.Exception thrown when an output guardrail validation fails.TheGuardrailExecutor
forOutputGuardrail
s.Builder class for constructing instances ofOutputGuardrailExecutor
.Represents the parameter passed toOutputGuardrail.validate(OutputGuardrailRequest)
.Builder forOutputGuardrailRequest
.The result of the validation of anOutputGuardrail
Represents an output guardrail failure -
Classes in dev.langchain4j.guardrail used by dev.langchain4j.serviceClassDescriptionRepresents the common parameters shared across guardrail checks when validating interactions between a user and a language model.An input guardrail is a rule that is applied to the input of the model to ensure that the input (i.e.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 dev.langchain4j.guardrail used by dev.langchain4j.service.guardrailClassDescriptionAn input guardrail is a rule that is applied to the input of the model to ensure that the input (i.e.The
GuardrailExecutor
forInputGuardrail
s.Represents the parameter passed toInputGuardrail.validate(InputGuardrailRequest)
.The result of the validation of anInputGuardrail
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.Represents the parameter passed toOutputGuardrail.validate(OutputGuardrailRequest)
.The result of the validation of anOutputGuardrail
-
Classes in dev.langchain4j.guardrail used by dev.langchain4j.test.guardrailClassDescriptionThe result of the validation of an interaction between a user and the LLM.The message and the cause of the failure of a single validation.The possible results of a guardrails validation.The result of the validation of an
InputGuardrail
The result of the validation of anOutputGuardrail