java.lang.Object
nl.dannyj.mistral.models.completion.content.TextChunk
All Implemented Interfaces:
ContentChunk

public class TextChunk extends Object implements ContentChunk
Represents a text part of the message content.
  • Constructor Details

    • TextChunk

      public TextChunk()
    • TextChunk

      public TextChunk(String text)
      Creates a new TextChunk instance.
      Parameters:
      text - The text content.
  • Method Details

    • getType

      public String getType()
      Gets the type identifier for this content chunk.
      Specified by:
      getType in interface ContentChunk
      Returns:
      The type string "text".
    • getText

      public String getText()
      The actual text content of this chunk.
      Returns:
      The text content.