Interface GuardrailTopic.Builder

    • Method Detail

      • name

        GuardrailTopic.Builder name​(String name)

        The name for the guardrail.

        Parameters:
        name - The name for the guardrail.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • type

        GuardrailTopic.Builder type​(String type)

        The type behavior that the guardrail should perform when the model detects the topic.

        Parameters:
        type - The type behavior that the guardrail should perform when the model detects the topic.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        GuardrailTopicType, GuardrailTopicType
      • type

        GuardrailTopic.Builder type​(GuardrailTopicType type)

        The type behavior that the guardrail should perform when the model detects the topic.

        Parameters:
        type - The type behavior that the guardrail should perform when the model detects the topic.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        GuardrailTopicType, GuardrailTopicType
      • detected

        GuardrailTopic.Builder detected​(Boolean detected)

        Indicates whether topic content that breaches the guardrail configuration is detected.

        Parameters:
        detected - Indicates whether topic content that breaches the guardrail configuration is detected.
        Returns:
        Returns a reference to this object so that method calls can be chained together.