Companion

object Companion

Functions

Link copied to clipboard
fun create(mimeType: String, data: ByteArray, filename: String? = null): AgentDocument

Create an AgentDocument with explicit MIME type and data

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

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

Link copied to clipboard

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

Link copied to clipboard

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