onCustomUiEvent

open suspend fun onCustomUiEvent(event: VpaMessage)

Notifies the VPA that a custom UI event occurred.

This can be used to tell the VPA that, for example, the end-user is in the middle of a dialogue with the VPA but interacted with the UI using touch. This allows the VPA to react to the event or to change the flow of the conversation based on what the user has done.

Parameters

event

The VpaMessage describing the event.