Interface GuardrailTraceAssessment.Builder

    • Method Detail

      • modelOutput

        GuardrailTraceAssessment.Builder modelOutput​(Collection<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.
      • 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.
      • 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.