Class ReferenceChunk

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

public class ReferenceChunk extends Object implements ContentChunk
Represents a reference part of the message content, linking to specific source materials or documents.
  • Constructor Details

    • ReferenceChunk

      public ReferenceChunk()
    • ReferenceChunk

      public ReferenceChunk(List<Integer> referenceIds)
      Creates a new ReferenceChunk instance.
      Parameters:
      referenceIds - The list of reference IDs.
  • Method Details

    • getType

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

      public List<Integer> getReferenceIds()
      A list of integer identifiers referencing related documents or sources.
      Returns:
      The list of reference IDs.