ByteArrayMaterializableAsset

data class ByteArrayMaterializableAsset(val name: String, val data: ByteArray, val mimeType: String? = null, val id: String = UUID.randomUUID().toString(), val timestamp: Instant = Instant.now(), val description: String = "Asset ") : MaterializableAsset

A MaterializableAsset holding in-memory bytes.

Serializes directly into JSON (with the byte array encoded as Base64), making it safe for process persistence and blackboard checkpointing.

Constructors

Link copied to clipboard
constructor(name: String, data: ByteArray, mimeType: String? = null, id: String = UUID.randomUUID().toString(), timestamp: Instant = Instant.now(), description: String = "Asset ")

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val id: String
Link copied to clipboard
open override val mimeType: String? = null

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

Link copied to clipboard
open override val name: String
Link copied to clipboard
open val timestamp: Instant

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun openStream(): InputStream
Link copied to clipboard
open fun persistent(): Boolean
Link copied to clipboard
open override fun reference(): LlmReference

Create an LLM reference