of
fun of(name: String, streamSupplier: () -> InputStream, mimeType: String? = null, id: String = UUID.randomUUID().toString(), timestamp: Instant = Instant.now(), description: String = "Asset "): MaterializableAsset
Create a transient MaterializableAsset from a stream supplier.
Assets created via stream suppliers cannot be serialized into JSON (e.g. for blackboard checkpoints). To persist or checkpoint messages carrying stream-based assets, materialize them into an com.embabel.chat.spi.AssetStore first and attach the resulting DurableAsset.