MediaContentPart

data class MediaContentPart(val resource: Resource)(source)

Represents a part of media content, consisting of a resource and an optional content type.

This class is designed to handle various types of media resources, such as URLs, data URLs, or Base64-encoded content. The resource defines the actual media data, while the content type provides additional information about the format of the media.

See also

Constructors

Link copied to clipboard
constructor(resource: Resource)

Properties

Link copied to clipboard

The media resource, which can be a URL, data URL, or Base64-encoded data.