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 newDocumentURLChunk
instance. -
Method Summary
-
Constructor Details
-
DocumentURLChunk
public DocumentURLChunk() -
DocumentURLChunk
Creates a newDocumentURLChunk
instance.- Parameters:
documentUrl
- The document URI.documentName
- The filename.
-
-
Method Details
-
getType
Gets the type identifier for this content chunk.- Specified by:
getType
in 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.
-