Companion

object Companion

Functions

Link copied to clipboard
fun file(dataBase64: String, mimeType: String, name: String = "file"): LlmAttachment

Произвольный файл из base64 (без префикса data:…;base64,)

Link copied to clipboard
fun image(dataBase64: String, mimeType: String = "image/png", name: String = ""): LlmAttachment

Изображение из base64 (без префикса data:…;base64,)

Link copied to clipboard
fun imageUrl(url: String, name: String = ""): LlmAttachment

Изображение по ссылке

Link copied to clipboard
fun textFile(text: String, name: String = "file.txt", mimeType: String = "text/plain"): LlmAttachment

Текстовый файл: содержимое кодируется в base64 автоматически