send

fun send(message: Message): Flow<ClientEvent>(source)

Send message and stream what the agent answers: a Message, or a Task followed by its status and artifact updates. The flow completes when the agent's stream ends; cancelling it stops reading.