AiliaLLMMediaData

data class AiliaLLMMediaData constructor(val mediaType: String, val filePath: String? = null, 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? = null, width: Int = 0, height: Int = 0, data: ByteArray? = null, dataSize: Int = 0)

Properties

Link copied to clipboard
val data: ByteArray? = null

Encoded image/audio file bytes, or null when filePath is supplied

Link copied to clipboard
val dataSize: Int = 0

Legacy size hint; native code uses data.size when data is supplied

Link copied to clipboard
val filePath: String? = null

Path to the media file, or null when data is supplied

Link copied to clipboard
val height: Int = 0

Height for raw RGB images; set to 0 for encoded image/audio data

Link copied to clipboard

Media type: "image" or "audio"

Link copied to clipboard
val width: Int = 0

Width for raw RGB images; set to 0 for encoded image/audio data

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