TextPart

public final class TextPart extends Part

Represents a text part of a multi-modal content block.

Summary

Public fields

final String

Public constructors

Creates a new TextPart with the specified text.

Public methods

String

Returns the text content of this part.

Public fields

text

public final String text

Public constructors

TextPart

public TextPart(String text)

Creates a new TextPart with the specified text.

Parameters
String text

the text content.

Public methods

getText

public String getText()

Returns the text content of this part.

Returns
String

the text content.