Class DocumentURLChunk

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

public class DocumentURLChunk extends Object implements ContentChunk
Represents a document URL part of the message content.
  • Constructor Details

    • DocumentURLChunk

      public DocumentURLChunk()
    • DocumentURLChunk

      public DocumentURLChunk(URI documentUrl, @Nullable String documentName)
      Creates a new DocumentURLChunk instance.
      Parameters:
      documentUrl - The document URI.
      documentName - The filename.
  • Method Details

    • getType

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

    • getDocumentUrl

      public URI getDocumentUrl()
      The URI of the document.
      Returns:
      The document URI.
    • getDocumentName

      @Nullable public String getDocumentName()
      The optional filename of the document.
      Returns:
      The filename, or null if not specified.