create

fun create(mimeType: String, data: ByteArray, filename: String? = null): AgentDocument

Create an AgentDocument with explicit MIME type and data