SlangIntentAction
All Superinterfaces:SlangAction
This interface is expected to be implemented by applications that are interested in taking action upon intent resolution by the Slang platform. When an implementation of this interface is registered with
SlangBuddy
during initialization, the implementation will be called by the Slang platform, whenever an intent is resolved.Since:1.0.0Method Detail
action
The action method to be implemented by applications that are interested in being notified when an utterance spoken by the user is resolved into a
SlangIntent
by Slang.Parameters:intent
- - theSlangIntent
resolved by Slang from the user utterancesession
- - the current sessionReturns:-SlangAction.Status.SUCCESS
if the action was handled successfully by the application, elseSlangAction.Status.FAILURE
. Upon success, the Slang platform speaks the success completion statement, if configured, else speaks the failure completion statement, if configured.
Last updated