Interface GuardrailTraceAssessment.Builder

  • Method Details

    • modelOutput

      The output from the model.

      Parameters:
      modelOutput - The output from the model.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • modelOutput

      GuardrailTraceAssessment.Builder modelOutput(String... modelOutput)

      The output from the model.

      Parameters:
      modelOutput - The output from the model.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inputAssessment

      The input assessment.

      Parameters:
      inputAssessment - The input assessment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • outputAssessments

      GuardrailTraceAssessment.Builder outputAssessments(Map<String,? extends Collection<GuardrailAssessment>> outputAssessments)

      the output assessments.

      Parameters:
      outputAssessments - the output assessments.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actionReason

      GuardrailTraceAssessment.Builder actionReason(String actionReason)

      Provides the reason for the action taken when harmful content is detected.

      Parameters:
      actionReason - Provides the reason for the action taken when harmful content is detected.
      Returns:
      Returns a reference to this object so that method calls can be chained together.