send

fun send(text: String, attachments: List<FilePart> = emptyList(), data: List<DataPart> = emptyList()): Boolean(source)

Send a user message (text and/or attachments, and data parts such as an A2UI action — DataPart.A2UI). While a reply is streaming the message is queued and sent when the turn finishes. Returns false only when there is nothing to send.