Interface TopicConfiguration.Builder

All Superinterfaces:
Buildable, CopyableBuilder<TopicConfiguration.Builder,TopicConfiguration>, SdkBuilder<TopicConfiguration.Builder,TopicConfiguration>, SdkPojo
Enclosing class:
TopicConfiguration

public static interface TopicConfiguration.Builder extends SdkPojo, CopyableBuilder<TopicConfiguration.Builder,TopicConfiguration>
  • Method Details

    • name

      A name for your topic control configuration.

      Parameters:
      name - A name for your topic control configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      TopicConfiguration.Builder description(String description)

      A description for your topic control configuration. Use this to outline how the large language model (LLM) should use this topic control configuration.

      Parameters:
      description - A description for your topic control configuration. Use this to outline how the large language model (LLM) should use this topic control configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • exampleChatMessages

      TopicConfiguration.Builder exampleChatMessages(Collection<String> exampleChatMessages)

      A list of example phrases that you expect the end user to use in relation to the topic.

      Parameters:
      exampleChatMessages - A list of example phrases that you expect the end user to use in relation to the topic.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • exampleChatMessages

      TopicConfiguration.Builder exampleChatMessages(String... exampleChatMessages)

      A list of example phrases that you expect the end user to use in relation to the topic.

      Parameters:
      exampleChatMessages - A list of example phrases that you expect the end user to use in relation to the topic.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rules

      Rules defined for a topic configuration.

      Parameters:
      rules - Rules defined for a topic configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rules

      Rules defined for a topic configuration.

      Parameters:
      rules - Rules defined for a topic configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rules

      Rules defined for a topic configuration.

      This is a convenience method that creates an instance of the Rule.Builder avoiding the need to create one manually via Rule.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to rules(List<Rule>).

      Parameters:
      rules - a consumer that will call methods on Rule.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: