MediaCategory

org.llm4s.media.MediaCategory
See theMediaCategory companion object
sealed trait MediaCategory extends Product, Serializable

The broad kind of a media type - the part of a MIME type before the slash.

This is the discriminator multimodal code branches on: extraction decides whether to decode a file as pixels, samples or text; a provider decides whether it can accept the payload at all. Modelling it as a type rather than as mimeType.startsWith("image/") keeps that decision exhaustive and testable.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object Application
object Audio
object Image
object Text
object Video

Members list

Value members

Abstract methods

def name: String

The MIME top-level type, e.g. "image".

The MIME top-level type, e.g. "image".

Attributes

Inherited methods

def productElementName(n: Int): String

Attributes

Inherited from:
Product
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def productPrefix: String

Attributes

Inherited from:
Product

Inherited and Abstract methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals
def productArity: Int

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product