fromBytes

fun fromBytes(filename: String, data: ByteArray): AgentDocument

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