Class TextChunk
java.lang.Object
nl.dannyj.mistral.models.completion.content.TextChunk
- All Implemented Interfaces:
ContentChunk
Represents a text part of the message content.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TextChunk
public TextChunk() -
TextChunk
Creates a newTextChunk
instance.- Parameters:
text
- The text content.
-
-
Method Details
-
getType
Gets the type identifier for this content chunk.- Specified by:
getType
in interfaceContentChunk
- Returns:
- The type string "text".
-
getText
The actual text content of this chunk.- Returns:
- The text content.
-