MediaSource

org.llm4s.media.MediaSource
See theMediaSource companion object
sealed trait MediaSource extends Product, Serializable

Where the bytes of a piece of media are: at a URL the consumer fetches, inline, or in a file already uploaded to a provider.

Pure data, like the rest of llm4s-media: nothing here fetches, reads or checks anything. llm4s-core's ContentPart builds parts from a source and checks it there (an inline source's size, a URL's scheme), because a check returns core's Result.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class Inline
class ProviderFile
class Url

Members list

Value members

Abstract methods

def kind: String

What kind of source this is, for errors and logs: url, inline or provider file <provider>.

What kind of source this is, for errors and logs: url, inline or provider file <provider>.

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