Interface GuardrailTopic.Builder

  • Method Details

    • 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

      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:
    • 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:
    • action

      The action the guardrail should take when it intervenes on a topic.

      Parameters:
      action - The action the guardrail should take when it intervenes on a topic.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • action

      The action the guardrail should take when it intervenes on a topic.

      Parameters:
      action - The action the guardrail should take when it intervenes on a topic.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.