Interface GuardrailResult<GR extends GuardrailResult>
- All Known Implementing Classes:
InputGuardrailResult
,OutputGuardrailResult
Deprecated, for removal: This API element is subject to removal in a future version.
The result of the validation of an interaction between a user and the LLM.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Deprecated, for removal: This API element is subject to removal in a future version.The message and the cause of the failure of a single validation.static enum
Deprecated, for removal: This API element is subject to removal in a future version.The possible results of a guardrails validation. -
Method Summary
Modifier and TypeMethodDescriptiondefault GuardrailResult
<GR> Deprecated, for removal: This API element is subject to removal in a future version.List
<? extends GuardrailResult.Failure> failures()
Deprecated, for removal: This API element is subject to removal in a future version.default Throwable
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.default boolean
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isFatal()
Deprecated, for removal: This API element is subject to removal in a future version.default boolean
Deprecated, for removal: This API element is subject to removal in a future version.default Object
Deprecated, for removal: This API element is subject to removal in a future version.default String
Deprecated, for removal: This API element is subject to removal in a future version.validatedBy
(Class<? extends Guardrail> guardrailClass) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
getResult
GuardrailResult.Result getResult()Deprecated, for removal: This API element is subject to removal in a future version. -
isSuccess
default boolean isSuccess()Deprecated, for removal: This API element is subject to removal in a future version. -
hasRewrittenResult
default boolean hasRewrittenResult()Deprecated, for removal: This API element is subject to removal in a future version. -
blockRetry
Deprecated, for removal: This API element is subject to removal in a future version. -
successfulText
Deprecated, for removal: This API element is subject to removal in a future version. -
successfulResult
Deprecated, for removal: This API element is subject to removal in a future version. -
isFatal
boolean isFatal()Deprecated, for removal: This API element is subject to removal in a future version. -
failures
List<? extends GuardrailResult.Failure> failures()Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- The list of failures eventually resulting from a set of validations.
-
getFirstFailureException
Deprecated, for removal: This API element is subject to removal in a future version. -
validatedBy
-
GuardrailResult
instead