Companion

object Companion

Functions

Link copied to clipboard
fun create(mimeType: String, data: ByteArray): AgentImage

Create an AgentImage with explicit MIME type and data

Link copied to clipboard
fun fromBytes(filename: String, data: ByteArray): AgentImage

Create an AgentImage from raw bytes, auto-detecting MIME type based on file extension

Link copied to clipboard

Create an AgentImage from a file, auto-detecting MIME type

Link copied to clipboard

Create an AgentImage from a Path, auto-detecting MIME type