Interface GuardrailTrace.Builder

    • Method Detail

      • action

        GuardrailTrace.Builder action​(String action)

        The trace action details used with the Guardrail.

        Parameters:
        action - The trace action details used with the Guardrail.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        GuardrailAction, GuardrailAction
      • inputAssessments

        GuardrailTrace.Builder inputAssessments​(Collection<GuardrailAssessment> inputAssessments)

        The details of the input assessments used in the Guardrail Trace.

        Parameters:
        inputAssessments - The details of the input assessments used in the Guardrail Trace.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • inputAssessments

        GuardrailTrace.Builder inputAssessments​(GuardrailAssessment... inputAssessments)

        The details of the input assessments used in the Guardrail Trace.

        Parameters:
        inputAssessments - The details of the input assessments used in the Guardrail Trace.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • outputAssessments

        GuardrailTrace.Builder outputAssessments​(Collection<GuardrailAssessment> outputAssessments)

        The details of the output assessments used in the Guardrail Trace.

        Parameters:
        outputAssessments - The details of the output assessments used in the Guardrail Trace.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • outputAssessments

        GuardrailTrace.Builder outputAssessments​(GuardrailAssessment... outputAssessments)

        The details of the output assessments used in the Guardrail Trace.

        Parameters:
        outputAssessments - The details of the output assessments used in the Guardrail Trace.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • traceId

        GuardrailTrace.Builder traceId​(String traceId)

        The details of the trace Id used in the Guardrail Trace.

        Parameters:
        traceId - The details of the trace Id used in the Guardrail Trace.
        Returns:
        Returns a reference to this object so that method calls can be chained together.