performAction

abstract suspend fun performAction(vpaIdentifier: VpaIdentifier, vpaAction: VpaAction)

Request to perform a VPA action.

A VPA action is an operation that the end-user wants to perform that does not involve voice, for example, placing a phone call. It is typically the thing the user was trying to achieve by asking the VPA through voice.

This API should be invoked when the end-user tries to continue their ongoing activity that was initiated by voice using input that was not voice such as by using the touch UI. For example, the user has asked the VPA for details about a restaurant but tries to then call the restaurant by pressing a button. This API should be called by the Frontend UI when the user presses the button to actually place the phone call.

Parameters

vpaIdentifier

The VPA which initiated the action.

vpaAction

The VPA action to perform.