Interface LLMProvider.Attachment

All Superinterfaces:
Serializable
Enclosing interface:
LLMProvider

public static interface LLMProvider.Attachment extends Serializable
Represents a file attachment that can be sent to the LLM for analysis. Attachments support various file types including images, documents, and text files. The LLM can analyze, reference, and answer questions about the attachment content.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the MIME content type.
    byte[]
    Gets the file data.
    Gets the file name.
  • Method Details

    • fileName

      String fileName()
      Gets the file name.
      Returns:
      the file name including extension
    • contentType

      String contentType()
      Gets the MIME content type.
      Returns:
      the content type
    • data

      byte[] data()
      Gets the file data.
      Returns:
      the file data