Jaa


ConversationalAgentTrigger Constructor

Definition

Creates an instance of a ConversationalAgentTrigger.

public:
 ConversationalAgentTrigger();
 ConversationalAgentTrigger();
public ConversationalAgentTrigger();
function ConversationalAgentTrigger()
Public Sub New ()

Remarks

If a ConversationalAgentSignal is detected while a ConversationalAgentSession is inactive, the AAR raises a ConversationalAgentTrigger background event. Your app can then use the Signal property to process the conversation.

If a ConversationalAgentSignal is detected while a ConversationalAgentSession is active (listening, speaking, detecting), the AAR does not raise a ConversationalAgentTrigger background event. Instead, it raises the SessionInterrupted event to indicate that the digital assistant app should set itself to inactive and stop processing input. The digital assistant can then decide to ignore the new signal or use it in the context of the current session.

Note

Some digital assistant sessions cannot be interrupted by another signal. For example, Cortana requires the user to issue a cancel or stop command to end the current session (the user cannot be in a Cortana session and issue commands to Alexa).

Applies to