DurableAsset

data class DurableAsset(val id: String, val name: String, val mimeType: String?, val sizeBytes: Long, val contentHash: String, val storageUri: String, val timestamp: Instant = Instant.now()) : Asset

Durable metadata for a materialized asset.

storageUri is opaque to consumers. It is interpreted only by the com.embabel.chat.spi.AssetStore that created this reference.

Constructors

Link copied to clipboard
constructor(id: String, name: String, mimeType: String?, sizeBytes: Long, contentHash: String, storageUri: String, timestamp: Instant = Instant.now())

Properties

Link copied to clipboard

Hash computed by the store during materialization. It can be used to verify content integrity when the asset is retrieved.

Link copied to clipboard
open val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val timestamp: Instant

Functions

Link copied to clipboard
open fun persistent(): Boolean
Link copied to clipboard
open override fun reference(): LlmReference

Create an LLM reference