Interface Conversational.Builder

  • Method Details

    • content

      Conversational.Builder content(Content content)

      The content of the conversation message.

      Parameters:
      content - The content of the conversation message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • content

      default Conversational.Builder content(Consumer<Content.Builder> content)

      The content of the conversation message.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to content(Content).

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

      The role of the participant in the conversation (for example, "user" or "assistant").

      Parameters:
      role - The role of the participant in the conversation (for example, "user" or "assistant").
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • role

      The role of the participant in the conversation (for example, "user" or "assistant").

      Parameters:
      role - The role of the participant in the conversation (for example, "user" or "assistant").
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: