image

fun image(uri: Uri, name: String? = null): AIMessageAttachment

An image to load, from the web or this device.


fun image(bitmap: ImageBitmap, name: String? = null): AIMessageAttachment

An image the app holds, such as a photo the person just took. Pass a small one, the size it shows at: it stays in memory while the conversation shows it.