org.llm4s.media.MediaSource
See theMediaSource companion trait
object MediaSource
Attributes
- Companion
- trait
- Graph
-
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- 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
- 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
- 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
- Supertypes
-
trait MediaSourcetrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
In this article