Class ReferenceChunk
java.lang.Object
nl.dannyj.mistral.models.completion.content.ReferenceChunk
- All Implemented Interfaces:
ContentChunk
Represents a reference part of the message content, linking to specific source materials or documents.
-
Constructor Summary
ConstructorsConstructorDescriptionReferenceChunk
(List<Integer> referenceIds) Creates a newReferenceChunk
instance. -
Method Summary
Modifier and TypeMethodDescriptionA list of integer identifiers referencing related documents or sources.getType()
Gets the type identifier for this content chunk.
-
Constructor Details
-
ReferenceChunk
public ReferenceChunk() -
ReferenceChunk
Creates a newReferenceChunk
instance.- Parameters:
referenceIds
- The list of reference IDs.
-
-
Method Details
-
getType
Gets the type identifier for this content chunk.- Specified by:
getType
in interfaceContentChunk
- Returns:
- The type string "reference".
-
getReferenceIds
A list of integer identifiers referencing related documents or sources.- Returns:
- The list of reference IDs.
-