org.llm4s.media.MediaSource
See theMediaSource companion trait
object MediaSource
Attributes
- Companion
- trait
- Source
- MediaSource.scala
- Graph
-
- Supertypes
- Self type
-
MediaSource.type
Members list
Type members
Classlikes
final case class Inline(bytes: IArray[Byte]) extends MediaSource
The media's bytes themselves. Two are equal when their bytes are, and toString prints the length, never the bytes.
The media's bytes themselves. Two are equal when their bytes are, and toString prints the length, never the bytes.
Attributes
- Source
- MediaSource.scala
- Supertypes
-
trait MediaSourcetrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
final case class ProviderFile(provider: String, id: String) extends MediaSource
A file already uploaded to the provider whose id is provider (openai, gemini), by that provider's id.
A file already uploaded to the provider whose id is provider (openai, gemini), by that provider's id.
Attributes
- Source
- MediaSource.scala
- Supertypes
-
trait MediaSourcetrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
final case class Url(uri: URI) extends MediaSource
Media at uri, which the consumer (a provider, usually) fetches.
Media at uri, which the consumer (a provider, usually) fetches.
Attributes
- Source
- MediaSource.scala
- Supertypes
-
trait MediaSourcetrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Inherited and Abstract types
The names of the product elements
The name of the type
In this article
