ImageInput

org.llm4s.llmconnect.model.ImageInput
See theImageInput companion object
@Stable
final case class ImageInput extends MMInput

Image as raw bytes (e.g., RGB or BGR interleaved) with basic shape metadata.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait MMInput
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def bytesApprox: Long

Approximate payload size in bytes (for logging/back-pressure).

Approximate payload size in bytes (for logging/back-pressure).

Attributes

Definition Classes
def withChannels(channels: Int): ImageInput

Sets the number of channels.

Sets the number of channels.

Attributes

def withData(data: Array[Byte]): ImageInput

Sets the pixel bytes.

Sets the pixel bytes.

Attributes

def withHeight(height: Int): ImageInput

Sets the height in pixels.

Sets the height in pixels.

Attributes

def withWidth(width: Int): ImageInput

Sets the width in pixels.

Sets the width in pixels.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product