MaterializableAsset

An Asset whose content can be copied to durable storage.

Implementations own the returned stream and callers must close it.

Properties

Link copied to clipboard
abstract val mimeType: String?

MIME type of the content, preferably one of the values defined by MimeTypes. Null when the producer cannot determine it.

Link copied to clipboard
abstract val name: String

Functions

Link copied to clipboard
abstract fun openStream(): InputStream
Link copied to clipboard
abstract fun reference(): LlmReference

Create an LLM reference