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 Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
- Known subtypes
Members list
In this article