Class DocumentURLChunk
java.lang.Object
nl.dannyj.mistral.models.completion.content.DocumentURLChunk
- All Implemented Interfaces:
ContentChunk
Represents a document URL part of the message content.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDocumentURLChunk(URI documentUrl, String documentName) Creates a newDocumentURLChunkinstance. -
Method Summary
-
Constructor Details
-
DocumentURLChunk
public DocumentURLChunk() -
DocumentURLChunk
Creates a newDocumentURLChunkinstance.- Parameters:
documentUrl- The document URI.documentName- The filename.
-
-
Method Details
-
getType
Gets the type identifier for this content chunk.- Specified by:
getTypein interfaceContentChunk- Returns:
- The type string "document_url".
-
builder
-
getDocumentUrl
The URI of the document.- Returns:
- The document URI.
-
getDocumentName
The optional filename of the document.- Returns:
- The filename, or null if not specified.
-