AiliaLLMMediaData

data class AiliaLLMMediaData constructor(val mediaType: String, val filePath: String, val width: Int = 0, val height: Int = 0, val data: ByteArray? = null, val dataSize: Int = 0)

Represents media data (image or audio) for multimodal LLM processing. Corresponds to the AILIALLMMediaData C structure.

Constructors

Link copied to clipboard
constructor(mediaType: String, filePath: String, width: Int = 0, height: Int = 0, data: ByteArray? = null, dataSize: Int = 0)

Properties

Link copied to clipboard
val data: ByteArray? = null

Raw media data (currently unsupported, reserved for future use)

Link copied to clipboard
val dataSize: Int = 0

Size of the raw data

Link copied to clipboard

Path to the media file (UTF-8)

Link copied to clipboard
val height: Int = 0

Height for images (pixels), unused for audio (set to 0)

Link copied to clipboard

Media type: "image" or "audio" (audio is reserved for future use)

Link copied to clipboard
val width: Int = 0

Width for images (pixels), sample count for audio

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String