WithAttachments

Represents a message that includes one or more attachments.

This interface extends the Message interface, adding support for managing additional content in the form of attachments. Attachments can be of various types such as images, videos, audio files, or other file formats. Implementing classes should define specific details of the message alongside its attachments.

Inheritors

Properties

Link copied to clipboard
abstract val attachments: List<Attachment>

A list of attachments associated with a message. Each attachment represents additional content that can be included, such as images, videos, audio files, or other documents.

Link copied to clipboard
abstract val content: String

The content of the message.

Link copied to clipboard

Stores metadata information for the current message instance, such as token count and timestamp.

Link copied to clipboard
abstract val role: Message.Role

The role associated with the message.