java.lang.Object
org.springframework.ai.chat.messages.Media

public class Media extends Object
The Media class represents the data and metadata of a media attachment in a message. It consists of a MIME type and the raw data. This class is used as a parameter in the constructor of the UserMessage class.
Since:
0.8.1
Author:
Christian Tzolov
  • Constructor Details

    • Media

      public Media(org.springframework.util.MimeType mimeType, Object data)
  • Method Details

    • getMimeType

      public org.springframework.util.MimeType getMimeType()
    • getData

      public Object getData()