Class TextPart


public final class TextPart extends MessagePart
A plain-text fragment of a ChatMessage. Text content within a multimodal ChatMessage.
  • Constructor Details

    • TextPart

      public TextPart(String text)
      Creates a text part.
      Parameters:
      text - text sent to or received from the model
  • Method Details

    • getText

      public String getText()
      Returns:
      text carried by this part