Interface GuardrailResult<GR extends GuardrailResult>

All Known Implementing Classes:
InputGuardrailResult, OutputGuardrailResult

@Deprecated(forRemoval=true) public interface GuardrailResult<GR extends GuardrailResult>
Deprecated, for removal: This API element is subject to removal in a future version.
Use GuardrailResult instead
The result of the validation of an interaction between a user and the LLM.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static 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 Type
    Method
    Description
    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 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
    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

      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

      default GuardrailResult<GR> blockRetry()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • successfulText

      default String successfulText()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • successfulResult

      default Object 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

      default Throwable getFirstFailureException()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • validatedBy

      GR validatedBy(Class<? extends Guardrail> guardrailClass)
      Deprecated, for removal: This API element is subject to removal in a future version.