Interface TopicConfiguration.Builder

    • Method Detail

      • description

        TopicConfiguration.Builder description​(String description)

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

        Parameters:
        description - A description for your topic control configuration. Use this 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.
      • name

        TopicConfiguration.Builder name​(String 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.
      • rules

        TopicConfiguration.Builder rules​(Collection<Rule> 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

        TopicConfiguration.Builder rules​(Rule... 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

        TopicConfiguration.Builder rules​(Consumer<Rule.Builder>... 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).

        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:
        #rules(java.util.Collection)