The raw data of the media attachment.
OptionalidThe unique identifier of the media attachment.
The MIME type of the media attachment.
OptionalnameThe name of the media object that can be referenced by the AI model.
Important security note: This field is vulnerable to prompt injections, as the model might inadvertently interpret it as instructions. It is recommended to specify neutral names.
The name must only contain:
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.