Interface Message.Builder

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

@Mutable @NotThreadSafe public static interface Message.Builder extends SdkPojo, CopyableBuilder<Message.Builder,Message>
  • Method Details

    • role

      Message.Builder role(String role)

      The role of the participant that produced this turn. Valid values:

      • USER - The user asked or said this turn.

      • ASSISTANT - The assistant answered in this turn.

      Parameters:
      role - The role of the participant that produced this turn. Valid values:

      • USER - The user asked or said this turn.

      • ASSISTANT - The assistant answered in this turn.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • role

      The role of the participant that produced this turn. Valid values:

      • USER - The user asked or said this turn.

      • ASSISTANT - The assistant answered in this turn.

      Parameters:
      role - The role of the participant that produced this turn. Valid values:

      • USER - The user asked or said this turn.

      • ASSISTANT - The assistant answered in this turn.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • content

      Message.Builder content(String content)

      The turn's text content.

      Parameters:
      content - The turn's text content.
      Returns:
      Returns a reference to this object so that method calls can be chained together.