Package dev.langchain4j.guardrail
Enum Class GuardrailResult.Result
- All Implemented Interfaces:
Serializable
,Comparable<GuardrailResult.Result>
,Constable
- Enclosing interface:
GuardrailResult<GR extends GuardrailResult<GR>>
The possible results of a guardrails validation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA failed validation not preventing the subsequent validations eventually registered to be evaluated.A fatal failed validation, blocking the evaluation of any other validations eventually registered.A successful validation.A successful validation with a specific result. -
Method Summary
Modifier and TypeMethodDescriptionstatic GuardrailResult.Result
Returns the enum constant of this class with the specified name.static GuardrailResult.Result[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
A successful validation. -
SUCCESS_WITH_RESULT
A successful validation with a specific result. -
FAILURE
A failed validation not preventing the subsequent validations eventually registered to be evaluated. -
FATAL
A fatal failed validation, blocking the evaluation of any other validations eventually registered.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-